diff --git a/modules/submission.js b/modules/submission.js index 01fdc7b..5e3b3aa 100644 --- a/modules/submission.js +++ b/modules/submission.js @@ -105,7 +105,7 @@ app.get('/submissions', async (req, res) => { } let paginate = syzoj.utils.paginate(await JudgeState.count(where), req.query.page, syzoj.config.page.judge_state); - let judge_state = await JudgeState.query(paginate, where, [['submit_time', 'desc']]); + let judge_state = await JudgeState.query(paginate, where, [['id', 'desc']]); await judge_state.forEachAsync(async obj => obj.loadRelationships());