How can I order by publication, then by title in supabase?
This is wrong:
.order('publicationDate', { ascending: false }, 'title', { ascending: true });
If I make them separate lines, the 2nd one overrides the first.
According to the comment in the source code of @supabase/postgres-js package
the only way to order by multiple columns is by using .order method multiple times.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With