Sort data in column of a multi-dimensional array in a descending direction while preserving keys – PHP
I have the following array that I'm attempting to sort each scores array by answer from high to low. $array = [ 503 => [ 'scores' => [ 4573 => ['answer' => 100], 4574 => ['answer' => 60], 4575 =>…