Multidimensional array sort? October 14, 2022 by Tarik Billa Use ksort($projectsByYear) Of course every time you add something to the array it will need to be resorted.