Menu
I have a 2d array and want to sort by a specific column.
So for example i have a table on a web page with headers – when clicking the headers it will sort all the data based on that column bu obviously keep all the other data the same so-
name no1. no2.
[0]b 5 7
[1]e 2 7
[2]s 8 1
so if no1. was clicked it would have
name no1. no2.
e 2 7
b 5 7
s 8 1
and possibly if no1. was clicked again it would sort in desc