public void sort(RevSort s, boolean use) {assertNotStarted();if (use)sorting.add(s);elsesorting.remove(s);if (sorting.size() > 1)sorting.remove(RevSort.NONE);else if (sorting.isEmpty())sorting.add(RevSort.NONE);}
public virtual void Sort(RevSort s, bool use){AssertNotStarted();if (use){sorting.AddItem(s);}else{sorting.Remove(s);}if (sorting.Count > 1){sorting.Remove(RevSort.NONE);}else{if (sorting.Count == 0){sorting.AddItem(RevSort.NONE);}}}