Enum SortOrder
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
จัดเรียงคำสั่งซื้อ
การแจกแจงที่แสดงลําดับการจัดเรียง
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
SpreadsheetApp.SortOrder.ASCENDING
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
ASCENDING | Enum | ลำดับการจัดเรียงจากน้อยไปมาก |
DESCENDING | Enum | ลำดับการจัดเรียงจากมากไปน้อย |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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. |"]]