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