💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
# ascending(C# 参考) **ascending** 上下文关键字用在查询表达式的 [orderby 子句](https://msdn.microsoft.com/zh-cn/library/bb383982.aspx)中,用于指定从最小到最大的排序顺序。因为 **ascending** 是默认排序顺序,所以您无须指定它。 下面的示例演示 **ascending** 在 [orderby 子句](https://msdn.microsoft.com/zh-cn/library/bb383982.aspx)中的用法。 ``` IEnumerable<string> sortAscendingQuery = from vegetable in vegetables orderby vegetable ascending select vegetable; ``` ## 请参阅 [C# 参考](https://msdn.microsoft.com/zh-cn/library/618ayhy6.aspx) [LINQ 查询表达式(C# 编程指南)](https://msdn.microsoft.com/zh-cn/library/bb397676.aspx) [descending(C# 参考)](https://msdn.microsoft.com/zh-cn/library/cc713622.aspx)