<?php $data = array( "1"=>array( "id"=>1, "name"=>"Test #1", "listorder"=>1), "6"=>array( "id"=>6, "name"=>"Test #1", "listorder"=>3), "2"=>array( "id"=>2, "name"=>"Test #2", "listorder"=>2) ); uasort($data,function($a,$b){ return strcmp($a["listorder"],$b["listorder"]); }); print_r($data);
You have javascript disabled. You will not be able to edit any code.