Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Sorting multidimensional arrays? Re: Sorting multidimensional arrays?

#71045
john010117
Member

http://php.net/array_multisort

I believe that’s what you’re looking for.

So, it’ll be something like:

Code:
<?php
foreach ($array as $key => $val)
{
     
array_multisort($valSORT_ASC);
?>

(note: untested)