慕婉清6462132
你可以试试下面的代码$multi = array( array( 'hashtag'=>'a7e87329b5eab8578f4f1098a152d6f4', 'title'=>'Flower', 'order'=>'3-1-9' ), array( 'hashtag'=>'b24ce0cd392a5b0b8dedc66c25213594', 'title'=>'Free', 'order'=>'2-7-5' ), array( 'hashtag'=>'e7d31fc0602fb2ede144d18cdffd816b', 'title'=>'Ready', 'order'=>'2-6-3' ), array( 'hashtag'=>'e7d31fc0602fb2ede144d18cdffd816b', 'title'=>'Ready', 'order'=>'3-6-3' ), );function sortByOrder($a, $b) { return str_replace("-","", $a['order']) - str_replace("-","",$b['order']); //For decending use the below code //return str_replace("-","", $b['order']) - str_replace("-","",$a['order']);}usort($multi, 'sortByOrder'); echo '<pre>';print_r($multi);