var ccArray = [];
ccArray = $("input:checkbox[name='multiselect_ddlCC']").sort();
I can tell that I get the values I need in the array, but after sort() runs the array order is changed but not alphabetically. I get something like ENG, ATL, NAS, CLT, BIM.
Any ideas?
You have to sort the DOM elements and re-append them.
Edit: Just tested
replaceWithand it didn’t work, my bad. This works fine:Demo: http://jsbin.com/agizoy/1/edit