Enum SortOrder
SortOrder
An enumeration representing the sort order.
To call an enum, you call its parent class, name, and property. For example,
SpreadsheetApp.SortOrder.ASCENDING
.
Properties
Property | Type | Description |
ASCENDING | Enum | Ascending sort order. |
DESCENDING | Enum | Descending sort order. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["`SortOrder` is an enumeration used to represent the sort order within Google Apps Script."],["It includes two properties: `ASCENDING` and `DESCENDING` to define the desired sort direction."],["To use it, call the parent class, name, and property, like `SpreadsheetApp.SortOrder.ASCENDING`."]]],["`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"]]