[FX.php List] Sorting multidimensional array
Tim 'Webko' Booth
tim at nicheit.com.au
Wed Feb 27 17:44:39 MST 2008
Dear All,
For some reason my brain is not working so well - this is trivial
but... I have a multidim array as follows, and I want to sort it on
Distance ascending so each sub-record is kept together but they are in
order.
Cheers
Webko
theDistances
Array
(
[0] => Array
(
[recid] => 74
[modid] => 11
[__kp_ID] => DEA00074
[Latitude] => +40.365020
[Longitude] => -079.584060
[Distance] => 82.148028545362
)
[1] => Array
(
[recid] => 741
[modid] => 11
[__kp_ID] => DEA00741
[Latitude] => +40.436827
[Longitude] => -079.617178
[Distance] => 79.391442648614
)
[2] => Array
(
[recid] => 1145
[modid] => 11
[__kp_ID] => DEA01145
[Latitude] => +40.621272
[Longitude] => -079.080422
[Distance] => 52.951428710724
)
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080228/a8c0fef2/attachment.html
More information about the FX.php_List
mailing list