Hello, there is no such array in any way I can sort it out so that the qty and qtr keys are at the bottom depending on the smallest value, and qtr should be lower than qty
I tried it like this, but something does not sort correctly
usort($this->images, function($a, $b) { return ($a['qty'] >= $b['qty']) ? -1 : 1; }); usort($this->images, function($a, $b) { return ($a['qtr'] >= $b['qtr']) ? 1 : -1; });