jQuery script for sorting a select box’s option elements.
You can easily sort the items in the select box ascending (A-Z) and descending (Z-A).
You can even ignore casing.
In the demo script, I have included a custom comparer function, which shows you how to randomize the content in the select box.
This will make it easier for you, to build your own custom sorting mechanisms and extend the SelectSorter easy!