I was trying trying to figure out if there is a way in SOQL to select/sort rows in a table with the longest Strings in a selected column.
Something similar to:
SELECT Id, Name FROM User ORDER BY LENGTH(Name)
The closest thing that I've found is the following:
SELECT Id, Name FROM User WHERE Name LIKE '__________________________'