ISortableCollection - acadet/ludivine GitHub Wiki
ISortableCollection<T>
|> ICollection<T>
Interface for any sortable collection (where there is an order relation). T types elements.
Some methods returns new instance of calling structure. For instance, calling reverse() on Stack will return a new Stack.
orderBy<U>(getter : Func<T, U>) : ISortableCollection<T>Orders collection using ascending method.
Parameters
getter Returns comparable value
orderByDesc<U>(getter : Func<T, U>) : ISortableCollection<T>Orders collection using descending method.
Parameters
getter Returns comparable value
reverse() : ISortableCollection<T>Reverses whole collection order.