63
rated 0 times
[
66]
[
3]
/ answers: 1 / hits: 31443
/ 13 Years ago, tue, august 9, 2011, 12:00:00
I have a Multidimensional Array which has 3 columns (by using javascript)
[0] Number of vote
[1] Name of candidate
[2] Candidate Number
My array contents are:
1 | Peter | 3
1 | Mary | 2
0 | David | 5
0 | John | 4
0 | Billy | 1
How can I sort the array by [0] Number of vote and then [2] candidate number?
The result should be:
1 | Mary | 2
1 | Peter | 3
0 | Billy | 1
0 | John | 4
0 | David | 5
More From » arrays