Skip to content

Commit

Permalink
Order by publish date for adventures category
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Jul 31, 2024
1 parent db0ef76 commit e009827
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Refresh.GameServer/Database/GameDatabaseContext.Levels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ public DatabaseList<GameLevel> GetCoolLevels(int count, int skip, GameUser? user
public DatabaseList<GameLevel> GetAdventureLevels(int count, int skip, GameUser? user, LevelFilterSettings levelFilterSettings) =>
new(this.GetLevelsByGameVersion(levelFilterSettings.GameVersion)
.FilterByLevelFilterSettings(user, levelFilterSettings)
.Where(l => l.IsAdventure), skip, count);
.Where(l => l.IsAdventure)
.OrderByDescending(l => l.PublishDate), skip, count);

[Pure]
public DatabaseList<GameLevel> SearchForLevels(int count, int skip, GameUser? user, LevelFilterSettings levelFilterSettings, string query)
Expand Down

0 comments on commit e009827

Please sign in to comment.