mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 06:58:41 +00:00
fix: order by dfn
This commit is contained in:
parent
aa5e3063dc
commit
bb5de2a00e
@ -46,7 +46,7 @@ function queryContestData($contest, $config = array(), $is_after_contest_query =
|
||||
$problems = [];
|
||||
$prob_pos = [];
|
||||
$n_problems = 0;
|
||||
$result = DB::query("select problem_id from contests_problems where contest_id = {$contest['id']} order by problem_id");
|
||||
$result = DB::query("select problem_id from contests_problems where contest_id = {$contest['id']} order by dfn");
|
||||
while ($row = DB::fetch($result, MYSQLI_NUM)) {
|
||||
$prob_pos[$problems[] = (int)$row[0]] = $n_problems++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user