You need to sign in to do that
Don't have an account?
Alexia Ribeiro 7
Sort alphabetically a Select Option
How to sort alphabetically a Select Option?
I see some examples but, the most close is from a github rep, but they didn't sort number also..
I need to order [0-9-A-Z]
Please, some help? I loosing my mind with this.
I see some examples but, the most close is from a github rep, but they didn't sort number also..
I need to order [0-9-A-Z]
Please, some help? I loosing my mind with this.
If you are using SOQL query then you can get sorted list by using ORDER BY Clause in a query like this -
Example -
SOQL ORDER BY Clause ASC -
SELECT name, Amount FROM opportunity ORDER BY name ASC
Here we have used the ORDER BY Clause called ASC. From the above SOQL statement name and Amount values will be retrieved from Opportunity and records will be arranged in Ascending order.
Similarly, you can use DESC for descending order.
Please mark it as the best answer, if it helps.
Thanks