uasort($list, function ($a, $b){
if ($a['sort'] == $b['sort']) {
return 0;
}
return ($a['sort'] < $b['sort']) ? 1 : -1; //-1向前即向上,往前走
});
uasort($list, function ($a, $b){
if ($a['sort'] == $b['sort']) {
return 0;
}
return ($a['sort'] < $b['sort']) ? 1 : -1; //-1向前即向上,往前走
});