Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 1.07 KB
title ms.date f1_keywords helpviewer_keywords ms.assetid
ascending (C# Reference)
07/20/2015
ascending
ascending_CSharpKeyword
ascending keyword [C#]
57fbb619-8187-481c-b68e-3a91996fde69

ascending (C# Reference)

The ascending contextual keyword is used in the orderby clause in query expressions to specify that the sort order is from smallest to largest. Because ascending is the default sort order, you do not have to specify it.

Example

The following example shows the use of ascending in an orderby clause.

[!code-csharpcsrefKeywordsContextual#14]

See Also