Postgres query count characters and order by longest length - Supabase