function sort($oba, $obb){ if($oba->grade < $obb->grade){ return 1; }elseif ($oba->grade == $obb->grade){ return ($oba->during <= $obb->during) ? 1 : -1; } usort($info, ‘sort‘);
排序后
原文地址:https://www.cnblogs.com/vinzen/p/10522121.html
时间: 2024-10-20 03:36:59