Sorts the sequence. A shortcut for OrderBy(x => x).
public static IEnumerable<T> Order<T>(this IEnumerable<T> source)
parameter | description |
---|---|
source | The sequence. |
The sorted sequence.
Sorts the sequence. A shortcut for OrderBy(x => x, comparer).
public static IEnumerable<T> Order<T>(this IEnumerable<T> source, IComparer<T> comparer)
parameter | description |
---|---|
source | The sequence. |
comparer | The comparer. |
The sorted sequence.