<?php
function mysort($a, $b)
{
if ($a['tk'] == $b['tk']) {
return 0;
}
return ($a['tk'] < $b['tk']) ? -1 : 1;
}
$orders_data = array();
$orders_data[] = array('tk'=>'z','region'=>4,'name'=>9);
$orders_data[] = array('tk'=>'s','region'=>2,'name'=>20);
$orders_data[] = array('tk'=>'t','region'=>3,'name'=>10);
$orders_data[] = array('tk'=>'a','region'=>1,'name'=>2);
usort($orders_data, "mysort");
print_r($orders_data);
?>