You need to sign in to do that
Don't have an account?
MX
Sorting a SelectList
Hey there,
is there a easy way to sort a SelectList alphabetic in Visualforce? Like sortby ="abc" or something like that, or have I got to do this in my controller?
Thanks a lot,
MX
Found the solution by myself. You can just use the sort() method in your controller on the list after adding options.
For example
mylist.add('c');
mylist.add('f');
mylist.add('a');
mylist.sort();