I am looking to sort an array of high scores, stored in a 2d array structured like this:
[name 1][score 1]
[name 2][score 2]
[name 3][score 3]
[name 4][score 4]
[name 5][score 5]
[name 6][score 6]
So if the array looks like this:
[name 1][100]
[name 2][200]
[name 3][50]
[name 4][700]
[name 5][640]
[name 6][277]
I would like it to be sorted like this:
[name 4][700]
[name 5][640]
[name 6][277]
[name 2][200]
[name 1][100]
[name 3][50]
So I basically has to sort the rows according to the highest int stored in the row.