我现在搜索时间更长,找不到像我猜的那样合适。
我相信这个问题肯定有问题,但我真的无法找到它:(
我有这个无关联数组,我想按给定的时间戳
对它进行排序[data] => Array
(
[0] => Array
(
[0] => 1415228400000 //sort by this value
[1] => 9826.5
)
[1] => Array
(
[0] => 1415401200000
[1] => 29197.95
)
[2] => Array
(
[0] => 1417561200000
[1] => 3916.35
)
[3] => Array
(
[0] => 1415142000000
[1] => 22120
)
[4] => Array
(
[0] => 1414796400000
[1] => 28345.35
)
[5] => Array
(
[0] => 1420412400000
[1] => 858
)
[6] => Array
(
[0] => 1423004400000
[1] => 132
)
[7] => Array
(
[0] => 1423522800000
[1] => 0
)
[8] => Array
(
[0] => 1424214000000
[1] => 231
)
[9] => Array
(
[0] => 1425510000000
[1] => 123.45
)
[10] => Array
(
[0] => 1425596400000
[1] => 2223.45
)
)
问题是,我必须在第三维中对其进行排序,我该怎么做?