Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Home

Order the results

Order the query result by column.

Parameters
    column
    REQUIRED
    string

    The column to order by

    options
    Optional
    object

    Named parameters


const { data, error } = await supabase
  .from('countries')
  .select('id', 'name')
  .order('id', { ascending: false })