I have an multidimensional array.
Lets' say its elements are:
h 1 r 9
a 3 d 4
c 2 f 5
b 9 g 8
How can I sort it, keeping the values on the "same row"?
Let's say I want to sort it with the first column as sort-value:
a 3 d 4
b 9 g 8
c 2 f 5
h 1 r 9
or the third column:
a 3 d 4
c 2 f 5
b 9 g 8
h 1 r 9
Lets' say its elements are:
h 1 r 9
a 3 d 4
c 2 f 5
b 9 g 8
How can I sort it, keeping the values on the "same row"?
Let's say I want to sort it with the first column as sort-value:
a 3 d 4
b 9 g 8
c 2 f 5
h 1 r 9
or the third column:
a 3 d 4
c 2 f 5
b 9 g 8
h 1 r 9