in AMP/Collections/SortedObservableCollection.cs [46:64]
public void Sort(Func<T, int> keySelector, SortDirection direction = SortDirection.Ascending)
{
_funcInt = keySelector;
_sortDirection = direction;
switch (direction)
{
case SortDirection.Ascending:
{
ApplySort(Items.OrderBy(keySelector));
break;
}
case SortDirection.Descending:
{
ApplySort(Items.OrderByDescending(keySelector));
break;
}
}
}