I have an array like this
[
["Adrian Garcia", "42"],
["Alberto Guglielmi", "42"],
["Alice Fung Yee Ng", "15"],
["Christopher Wilson", "4"],
["Claudio Meneghetti", "13"],
["Bahadir Tanriover", "15"],
["Baitinger Martin", "36"],
["Bill Cash", "15"],
["Brian Kuhlmann", "15"],
["Caesar Lima", "15"],
["Carl Tremblay", "42"],
["Aorta", "42"],
["Charles Harris", "15"],
["Chet Morrison", "15"],
["Chico Audi", "11"],
["Andreas Gemperle", "42"],
["Angel Burns", "42"],
["Arno Bosma", "42"],
["Chris Bailey", "15"],
["Chris Close", "1"],
["Christoph Martin Schmid", "42"],
["Ben Isselstein", "25"],
["Colin Thomas", "15"],
["Craig Cameron Olsen", "42"],
["Craig Easton", "42"]
]
I need to sort this array by numbers and also the name in ascending order. I find most of the solutions for sort by single value. But I need to sort by two values.
I need output like below.
[
["Chris Close", "1"]
["Christopher Wilson", "4"]
["Chico Audi", "11"]
["Claudio Meneghetti", "13"]
["Alice Fung Yee Ng", "15"]
["Bahadir Tanriover", "15"]
["Bill Cash", "15"]
["Brian Kuhlmann", "15"]
["Caesar Lima", "15"]
["Charles Harris", "15"]
["Chet Morrison", "15"]
["Chris Bailey", "15"]
["Colin Thomas", "15"]
["Ben Isselstein", "25"]
["Baitinger Martin", "36"]
["Adrian Garcia", "42"]
["Alberto Guglielmi", "42"]
["Carl Tremblay", "42"]
["Aorta", "42"]
["Andreas Gemperle", "42"]
["Angel Burns", "42"]
["Arno Bosma", "42"]
["Christoph Martin Schmid", "42"]
["Craig Cameron Olsen", "42"]
["Craig Easton", "42"]
]