void SortEntries(TableEntryComparer comparer, bool noRedraw) { Array.Sort(usedEntries, 0, Count, comparer); Array.Sort(entries, 0, entries.Length, comparer); lastIndex = -10; if (noRedraw) { return; } comparer.Invert = !comparer.Invert; SetSelected(SelectedHash); NeedRedraw(); }
void SortEntries(TableEntryComparer comparer, bool noRedraw) { string selHash = SelectedIndex >= 0 ? usedEntries[SelectedIndex].Hash : ""; Array.Sort(usedEntries, 0, Count, comparer); Array.Sort(entries, 0, entries.Length, comparer); lastIndex = -10; if (noRedraw) { return; } comparer.Invert = !comparer.Invert; SetSelected(selHash); NeedRedraw(); }
void SortEntries(TableEntryComparer comparer, bool noRedraw) { Array.Sort(entries, 0, entries.Length, comparer); lastIndex = -10; if (curFilter != null && curFilter.Length > 0) { FilterEntries(curFilter); } if (noRedraw) { return; } comparer.Invert = !comparer.Invert; SetSelected(SelectedHash); NeedRedraw(); }