IEnumerable<T>.Ordered Method
Overloads
| Ordered |
Sorts the elements of the sequence in ascending order using the default comparer for their type. |
| Ordered(IComparer<T>) |
Sorts the elements of the sequence in ascending order using the specified comparer. |
| Ordered(TComparison<T>) |
Sorts the elements of the sequence in ascending order using the specified comparison. |
Sorts the elements of the sequence in ascending order using the default comparer for their type.
Delphi
function Ordered: IEnumerable<T>
Returns
IEnumerable<T>
A sequence whose elements are sorted.
Sorts the elements of the sequence in ascending order using the specified comparer.
Delphi
function Ordered(const comparer: IComparer<T>): IEnumerable<T>
Parameters
- comparer
- IComparer<T>
Returns
IEnumerable<T>
A sequence whose elements are sorted.
Exceptions
comparer is nil .
Sorts the elements of the sequence in ascending order using the specified comparison.
Delphi
function Ordered(const comparer: TComparison<T>): IEnumerable<T>
Parameters
- comparer
- TComparison<T>
Returns
IEnumerable<T>
A sequence whose elements are sorted.
Exceptions
comparer is nil .