OrderAscending Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
OrderAscending<T>(IEnumerable<T>)
Returns ascending sorted elements from a sequence by using the default comparer to compare values.
public static IEnumerable<T> OrderAscending<T>(this IEnumerable<T> source)
Parameters
sourceIEnumerable<T>An IEnumerable<T> to extend.
Returns
- IEnumerable<T>
An IEnumerable<T> that contains ascending sorted elements from the source sequence.
Type Parameters
TThe type of the elements of
source.
OrderAscending<T>(IEnumerable<T>, IComparer<T>)
Returns ascending sorted elements from a sequence by using a specified IComparer<T> to compare values.
public static IEnumerable<T> OrderAscending<T>(this IEnumerable<T> source, IComparer<T> comparer)
Parameters
sourceIEnumerable<T>An IEnumerable<T> to extend.
comparerIComparer<T>An IComparer<T> to compare values.
Returns
- IEnumerable<T>
An IEnumerable<T> that contains ascending sorted elements from the source sequence.
Type Parameters
TThe type of the elements of
source.