From e009827e6d92be4eeda0b3729439d0ef901490f1 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 31 Jul 2024 13:57:38 -0400 Subject: [PATCH] Order by publish date for adventures category --- Refresh.GameServer/Database/GameDatabaseContext.Levels.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Refresh.GameServer/Database/GameDatabaseContext.Levels.cs b/Refresh.GameServer/Database/GameDatabaseContext.Levels.cs index be7540e3..dc6a9961 100644 --- a/Refresh.GameServer/Database/GameDatabaseContext.Levels.cs +++ b/Refresh.GameServer/Database/GameDatabaseContext.Levels.cs @@ -355,7 +355,8 @@ public DatabaseList GetCoolLevels(int count, int skip, GameUser? user public DatabaseList 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 SearchForLevels(int count, int skip, GameUser? user, LevelFilterSettings levelFilterSettings, string query)