alphabetize an array of strings in javascript code example
Example: javascript sort array strings alphabetically
//sort array alphabetically
objArray.sort(function(a, b) {
return a.localeCompare(b);
});
//sort array alphabetically
objArray.sort(function(a, b) {
return a.localeCompare(b);
});