diff --git a/judgels-backends/judgels-server-app/src/main/java/judgels/sandalphon/submission/programming/BaseSubmissionStore.java b/judgels-backends/judgels-server-app/src/main/java/judgels/sandalphon/submission/programming/BaseSubmissionStore.java index 175b61a8f..14e9c9868 100644 --- a/judgels-backends/judgels-server-app/src/main/java/judgels/sandalphon/submission/programming/BaseSubmissionStore.java +++ b/judgels-backends/judgels-server-app/src/main/java/judgels/sandalphon/submission/programming/BaseSubmissionStore.java @@ -74,6 +74,7 @@ public List getSubmissionsForScoreboard( .select() .whereContainerIs(containerJid) .whereLastSubmissionIs(lastSubmissionId) + .orderBy(UnmodifiableModel_.ID, OrderDir.ASC) .all(); Set submissionJids = submissionModels.stream().map(m -> m.jid).collect(Collectors.toSet());