How to sort multidimensional array in javascript

Viewed 11554

I have an array as follows

var arry = [ [1, "Convention Hall", "Mumbai", 10, "XYZ Company"], 
             [2, "Auditorium", "Delhi", 10, "ABC Company"], 
             [3, "CenterHall", "Bangalore", 10, "ZZZ Company"],
            ....
            ]

I want to sort the array alphabetically based on the third item of array i.e arry[n][2]

How to do this.

4 Answers
Related