Postgres query count characters and order by longest length

How can I do this query in Supabase JS SDK?

select title from stories order by length(title) desc
Was this page helpful?