4,"b"=>2,"c"=>8,'d'=>"6"); uasort($arr,"my_sort"); print_r($arr);