The syntax used is the same as of array_multisort().
If your array does not have associated indexes, then you can use column numbers.
If you also use PHP's constants like SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC or SORT_STRING, then these can be mixed up with column numbers.
So, to remove this problem, copies of these constants exist:
Other than that, these function work together JUST like array_multisort but sorts using column(s) without the need to first extract the columns into individual arrays.
Here are some key features of "Sort multiple dimensional arrays by column":
· AMC_SORT_STRING_CASELESS to sort the strings case insensitively.
· AMC_LOSE_ASSOCIATION (the default behaviour) to lose the associations for the array.
· AMC_KEEP_ASSOCIATION to keep the associations for the array.
What's New in This Release: [ read full changelog ]
· Minor modification to not do any work if the array being sorted is empty.