You need to sign in to do that
Don't have an account?

Filtering Visualforce List alphabetically.
In a standard salesforce pages there is a way to filter/Sort the list based on staring Letter. This is precisely the requirement which was required to be built for custom visualforce page. I built a page and class which would do this functionality
click here to check the visualforce page and the controller to built the list
//Set have contains that will check for *
yourSet.contains('*');
//then use logic to show them at the top or bottom of the list after sorting them
OR
you can go for this post that sorts list using coparable interface
http://abhithetechknight.blogspot.in/2013/12/salesforce-comparable-interface-using.html
Ranga,