$array =
array(
 0 => Array ( 'Film' => Array ( 'id' => 1154, 'name_eng' => 'cruel_stories_clip10.3gp', 'download' => 0, 'size' => 952716)),

 1 => Array ( 'Film' => Array ( 'id' => 1154, 'name_eng' => 'cruel_stories_clip2.3gp', 'download' => 0, 'size' => 952716)),

 2 => Array ( 'Film' => Array ( 'id' => 1154, 'name_eng' => 'cruel_stories_clip1.3gp', 'download' => 0, 'size' => 952716))
);

function sss($a, $b)
{
 return strnatcasecmp($a['Film']["name_eng"], $b['Film']["name_eng"]);
}
usort($array, "sss");
foreach($array as $value)
{
 echo $value['Film']["name_eng"].'<hr/>';
}

You must be logged in to leave a reply.