What is the most efficient way to sort an Html Select's Options by value, while preserving the currently selected item?
Asked 2008-09-05T14:05:34.917
86
I have jQuery but I'm not sure if it has any built-in sorting helpers. I could make a 2d array of each item's text, value, and selected properties, but I don't think that javascript's built in Array.sort() would work correctly.