Compartir a través de


Sequence.OrderBy Method

Orders a sequence according to the given key in ascending order.

Namespace: Microsoft.Modeling
Assembly: Microsoft.Xrt.Runtime (in Microsoft.Xrt.Runtime.dll)

Usage

'Usage

Syntax

'Declaration
public Sequence<T> OrderBy<K> (
    Func<T,K> keySelector
)

GenericParameters

  • K

Parameters

  • keySelector

Remarks

Note that sub-ordering is not ordered. Sub-ordered collections are not fully transparent for state identification as they need to remember the outer ordering.

Use OrderBy to do nested ordering when you need it, and convert the result back to the collection type when ordering is done.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003

See Also

Reference

Sequence Generic Class
Sequence Members
Microsoft.Modeling Namespace