$sort = array(
'direction α♦φ' => 'SORT_ASC', //排序↕ε順序标志(zhì) SORT_DESC 降序;SORT_ASC 升序φ¶₽
&♦∏nbsp; 'field' => 'd☆£≥istance', &n≥₹✔↔bsp; //排序字段
±↑ Ω );
&nb←≥sp; $arrSort = array(λ↑•);
foreacφ ✘↑h($dizhi AS $uniqid => $r✘•↓®ow){
&nbs©←≤&p; foreach($row AS $key=>↔≈δ;$value){
&nΩΩδαbsp; &nbs↑♣φ★p; $arrSort[$key][$uni&✔qid] = $value;
 §; }
} &nbs★→±p;
¥×€ if($sort['direction']★<±){
&nb♦φαsp; array_multisort(γ★€←$arrSort[$sort['field']], c onstant($sort['direction']), $dizhi); &n©®§bsp;
 ×πδ; }