Skip to content

Commit

Permalink
fix(backend): The challenges are not sorted correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 1, 2024
1 parent 9cf86b5 commit b782ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GZCTF/Repositories/GameRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public async Task<ScoreboardModel> GenScoreboard(Game game, CancellationToken to
.AsNoTracking()
.IgnoreAutoIncludes()
.Where(c => c.GameId == game.Id && c.IsEnabled)
.OrderBy(c => c.Tag)
.ThenBy(c => c.Title)
.Select(c => new ChallengeInfo
{
Id = c.Id,
Expand Down

0 comments on commit b782ed8

Please sign in to comment.