© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
lsscodes

how to order by multiple columns in supabase-python?

client.table("info")
        .select("*")
        .order("custom_ranking")
        .order("view_count", desc=True)
        .limit(999999)
        .execute()
client.table("info")
        .select("*")
        .order("custom_ranking")
        .order("view_count", desc=True)
        .limit(999999)
        .execute()


it is sorting only by "custom_ranking" column when I am trying to sort by the specified(two) columns
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Order by multiple columns in supabase
SupabaseSSupabase / help-and-questions
13mo ago
Re-order columns in Supabase Studio?
SupabaseSSupabase / help-and-questions
4y ago
How to query a table by multiple columns
SupabaseSSupabase / help-and-questions
4y ago
How to select multiple columns?
SupabaseSSupabase / help-and-questions
4y ago