Table of Contents

OrderAscending Method

Definition

Namespace
Cuemon.Extensions.Collections.Generic
Assemblies
Cuemon.Extensions.Collections.Generic.dll
Source
src/Cuemon.Extensions.Collections.Generic/EnumerableExtensions.cs

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

source IEnumerable<T>

An IEnumerable<T> to extend.

Returns

IEnumerable<T>

An IEnumerable<T> that contains ascending sorted elements from the source sequence.

Type Parameters

T

The 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

source IEnumerable<T>

An IEnumerable<T> to extend.

comparer IComparer<T>

An IComparer<T> to compare values.

Returns

IEnumerable<T>

An IEnumerable<T> that contains ascending sorted elements from the source sequence.

Type Parameters

T

The type of the elements of source.