<?php $array = [ [ 'Property' => [ 'id' => 10, 'member_id' => 2, 'ref_no' => 333, ], ], [ 'Property' => [ 'id' => 16, 'member_id' => 4, 'ref_no' => 509, ], ], ]; usort($array, fn($a, $b) => $b['Property']['ref_no'] <=> $a['Property']['ref_no']); var_export($array);
You have javascript disabled. You will not be able to edit any code.