I want to get the picklist values of a picklist field in Apex.
I use the
someFieldResult.getPicklistValues(); function and that works fine. This gives me all the picklist values, in alphabetic order (e.g. Alpha, Beta, Gamma).
However, I want to have those values in the order they were entered (e.g. Gamma, Alpha, Beta). How to do that?