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');
排序后
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');
排序后