If I have an array of locations like so:
["Roberts", "baltimore", "Maryland", "21212"],
["Adams", "baltimore", "Maryland", "21212"],
["Joes", "philadelphia", "Pennsylvania", "30333"],
["Carls", "new york", "New York", "40415"]
Using Javascript or Jquery, How would I first sort them by state, then by name, so the resulting order would be:
["Adams", "baltimore", "Maryland", "21212"],
["Roberts", "baltimore", "Maryland", "21212"],
["Carls", "new york", "New York", "40415"],
["Joes", "philadelphia", "Pennsylvania", "30333"]
http://stackoverflow.com/questions/9374538/multi-sorting-a-multi-dimensional-array – Pratik Shah Feb 18 '14 at 15:20