IsotopeSelect.order¶
Add an ORDER BY clause to a SQL query expression
Signature¶
IsotopeSelect<T>.order(
field: string,
direction?: "asc" | "desc"
): this
Parameters¶
field
-
Sort field.
direction
-
Sort direction — optional, default:
"asc"
.
Example¶
// SELECT * FROM `domain` ORDER BY `key` ASC
isotope.getQueryBuilder()
.order("`key`")
.toString()