I got an array like that
Array
(
[0] => Array
(
[UnitESN] => 14296
[ScanNo] => 1
[ScanDate] => Nov 21
[ScanTime] => 10:15 AM
[Qualifiers] =>
[Notes] =>
[BadgeData] => Array
(
[0] => HEATH---
[1] => MCCU----
[2] => HER---
[3] => HCONNORS@------
[4] =>
[5] => 393
[6] => 13350
[7] =>
[8] =>
[9] => 111
)
[Signal] => +00/000
[ConnectionDelay] => 0407
)
[1] => Array
And so on… I want to order ASC or DESC… let’s say on Col 8 and Col 8 is entry number 7 (8-1 because it start at zero) in BadgeData, any ideas ? I’ve try array_multisort but without succes.
Thanks
I’m glad you figured it out. Here’s what I started writing before I got interrupted.
Basic
uasortExample:It looks like I may have misunderstood your original question though as I thought you wanted to sort the array by the value in
BadgeData[7]but it seems like you wanted to sort the BadgeData for each array value.