Kotlin: Order the results

Order the query result by column.

Parameters

Examples

With `select()`

supabase.from("countries").select(columns = Columns.list("id", "name")) \{
   order(column = "id", order = Order.ASCENDING)
\}

On a foreign table

val columns = Columns.raw("""
    name,
    cities (
        name
    )
""".trimIndent())
supabase.from("countries").select(
    columns = columns
) \{
    order(column = "id", order = Order.ASCENDING, referencedTable = "cities")
\}