Click or drag to resize

ExtensionsOrderByTElements Method

Sorts the elements of a sequence in ascending order according to a key.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static IOrderedEnumerable<TElements> OrderBy<TElements>(
	this Array array,
	Func<TElements, bool> keySelector
)

Parameters

array
Type: SystemArray
A sequence of values to order.
keySelector
Type: SystemFuncTElements, Boolean
A function to extract a key from an element.

Type Parameters

TElements
Der Typ der Elemente von source.

Return Value

Type: IOrderedEnumerableTElements
An IOrderedEnumerableTElement whose elements are sorted according to a key.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Array. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also