Sort
Represents the sorting order for a database query. Used in ORDER BY clauses to specify whether the results should be sorted in ascending or descending order.
Example
Employees
.select(
Employees.firstName,
Employees.lastName,
).orderBy(Employees.firstName, Sort.ASC)
.execute()Content copied to clipboard
ASC Specifies an ascending sort order (e.g., A-Z, 1-9). DESC Specifies a descending sort order (e.g., Z-A, 9-1).
Author
MOHAMMAD AZIM ANSARI