Skip to content

Commit

Permalink
比赛列表按时间排序 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Jun 14, 2024
1 parent 0d931e2 commit 149b91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app/controllers/contests.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function echoContest($contest) {
$table_header .= '<th style="width:100px;">'.UOJLocale::get('contests::the number of registrants').'</th>';
$table_header .= '<th style="width:180px;">'.UOJLocale::get('appraisal').'</th>';
$table_header .= '</tr>';
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by id desc', $table_header,
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by start_time asc, id asc', $table_header,
echoContest,
array('page_len' => 100)
);
Expand All @@ -80,7 +80,7 @@ function echoContest($contest) {

<h4><?= UOJLocale::get('contests::ended contests') ?></h4>
<?php
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by id desc', $table_header,
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by start_time desc, id desc', $table_header,
echoContest,
array('page_len' => 100,
'print_after_table' => function() {
Expand Down

0 comments on commit 149b91d

Please sign in to comment.