Lets say that we have an array of objects:
{ name : String }
then we can sort our array as follows:
array.sort(function(a, b) {
var orderBool = a.name > b.name;
return orderBool ? 1 : -1;
});
Note: Be careful for upper letters, you may need to cast your string to lower case due to your purpose.