result = [['Houston','TX', 84],['Austin','TX', 84],['Los Angeles','LA', 84]];
The above is my code:
I want to sort this array alphabetically based on two fields, State and City. The sorted array for above example should be: result = [['Los Angeles','LA', 84], ['Austin','TX', 84], ['Houston','TX', 84]];
Please suggest me a solution in JavaScript