JavaScript: Order the results
Parameters
- column(Required)
- options(Optional)
Examples
With `select()`
const { data, error } = await supabase
  .from('characters')
  .select('id, name')
  .order('id', { ascending: false })
On a referenced table
  const { data, error } = await supabase
    .from('orchestral_sections')
    .select(`
      name,
      instruments (
        name
      )
    `)
    .order('name', { referencedTable: 'instruments', ascending: false })
Order parent table by a referenced table
  const { data, error } = await supabase
    .from('instruments')
    .select(`
      name,
      section:orchestral_sections (
        name
      )
    `)
    .order('section(name)', { ascending: true })