fork download
<?php
	
class ReportController {
    public function complements()
    {
        $dishes = 
             [
                  'a' => ['count' => 200, 'more' => 'qwerty'],
                  'b' => ['count' => 300, 'more' => 'qwerty'],
                  'c' => ['count' => 100, 'more' => 'qwerty'],
             ];
		
		uasort($dishes, [self::class, 'cmp']);
		print_r($dishes);
    }
	
	private function cmp($a, $b) {
		return $a <=> $b;
	}
}
	
(new ReportController)->complements();
Success #stdin #stdout 0.02s 24308KB
stdin
Standard input is empty
stdout
Array
(
    [c] => Array
        (
            [count] => 100
            [more] => qwerty
        )

    [a] => Array
        (
            [count] => 200
            [more] => qwerty
        )

    [b] => Array
        (
            [count] => 300
            [more] => qwerty
        )

)