diff --git a/Handler/ShowChallenge.hs b/Handler/ShowChallenge.hs index 2229c57..a4fd96c 100644 --- a/Handler/ShowChallenge.hs +++ b/Handler/ShowChallenge.hs @@ -531,7 +531,8 @@ getChallengeAllSubmissionsR name = getChallengeSubmissions (\_ -> True) name getChallengeSubmissions :: ((Entity Submission) -> Bool) -> Text -> Handler Html getChallengeSubmissions condition name = do Entity challengeId challenge <- runDB $ getBy404 $ UniqueName name - (evaluationMaps, tests) <- getChallengeSubmissionInfos condition challengeId + (evaluationMaps, tests') <- getChallengeSubmissionInfos condition challengeId + let tests = sortBy testComparator tests' mauth <- maybeAuth let muserId = (\(Entity uid _) -> uid) <$> mauth