$arr = array('index'=>array( 'name'=>'首页','order'=>3),
'intro'=>array( 'name'=>'企业概况','order'=>2),
'news'=>array( 'name'=>'新闻动态','order'=>1 ),
'product'=>array( 'name'=>'产品中心','order'=>4 ),
'message'=>array( 'name'=>'访客留言','order'=>7 ),
'position'=>array( 'name'=>'人才招聘','order'=>6),
'contact'=>array( 'name'=>'联系我们','order'=> 5 )
);
uasort($arr, 'cmp');
public function cmp($a, $b){
return $a['order'] - $b['order'];
}