-
-
Save mc-stephen/b3c7a220321dd75f189e49db0f81d18a to your computer and use it in GitHub Desktop.
Revisions
-
cschlyter revised this gist
Mar 21, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ function sortSelectOptions(selectElement) { options.sort(function(a,b) { if (a.text.toUpperCase() > b.text.toUpperCase()) return 1; else if (a.text.toUpperCase() < b.text.toUpperCase()) return -1; else return 0; }); $(selectElement).empty().append( options ); } -
cschlyter renamed this gist
Mar 18, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cschlyter created this gist
Mar 18, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ function sortSelectOptions(selectElement) { var options = $(selectElement + " option"); options.sort(function(a,b) { if (a.text.toUpperCase() > b.text.toUpperCase()) return 1; else if (a.text.toUpperCase() < b.text.toUpperCase()) return -1; else return 0 }) $(selectElement).empty().append( options ); }