Enum SortOrder
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
排序顺序
表示排序顺序的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
SpreadsheetApp.SortOrder.ASCENDING
。
属性
属性 | 类型 | 说明 |
ASCENDING | Enum | 升序排序。 |
DESCENDING | Enum | 降序排序顺序。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eSortOrder\u003c/code\u003e is an enumeration used to represent the sort order within Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eIt includes two properties: \u003ccode\u003eASCENDING\u003c/code\u003e and \u003ccode\u003eDESCENDING\u003c/code\u003e to define the desired sort direction.\u003c/p\u003e\n"],["\u003cp\u003eTo use it, call the parent class, name, and property, like \u003ccode\u003eSpreadsheetApp.SortOrder.ASCENDING\u003c/code\u003e.\u003c/p\u003e\n"]]],["`SortOrder` is an enumeration with two properties: `ASCENDING` and `DESCENDING`. These represent the ascending and descending sort orders, respectively. To use them, access via `SpreadsheetApp.SortOrder.ASCENDING` or `SpreadsheetApp.SortOrder.DESCENDING`. It provides a way to specify the direction for sorting data within a spreadsheet application.\n"],null,["# Enum SortOrder\n\nSortOrder\n\nAn enumeration representing the sort order.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.SortOrder.ASCENDING`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|------------------------|\n| `ASCENDING` | `Enum` | Ascending sort order. |\n| `DESCENDING` | `Enum` | Descending sort order. |"]]