B2023-041 fixed issue where sorting search results no longer worked

This commit is contained in:
John Jenko 2023-04-13 15:01:37 +00:00
parent 0f35d403d2
commit 8e07ea130b

View File

@ -1622,7 +1622,8 @@ namespace Volian.Controls.Library
if (_SearchResults != null)
{
// B2021-076: Proms search results are not presented in order when printed to PDF
if (cbSorted.Checked && _DisplayMember != "SearchPath" && _DisplayMember == "ShortSearchPath")
// B2023-041 - backed out previous change as it was not needed and was preventing the sorting of search results text
if (cbSorted.Checked)
{
Csla.SortedBindingList<ItemInfo> sortedResults = new Csla.SortedBindingList<ItemInfo>(_SearchResults);
sortedResults.ApplySort(_DisplayMember, ListSortDirection.Ascending);