Skip to content

Commit

Permalink
Correctly order newest levels
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Mar 7, 2023
1 parent 6aabed6 commit ccdb2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Refresh.GameServer/Database/RealmDatabaseContext.Levels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public IEnumerable<GameLevel> GetLevelsByUser(GameUser user, int count, int skip
[Pure]
public IEnumerable<GameLevel> GetNewestLevels(int count, int skip) =>
this._realm.All<GameLevel>()
.OrderBy(l => l.PublishDate)
.OrderByDescending(l => l.PublishDate)
.AsEnumerable()
.Skip(skip)
.Take(count);
Expand Down

0 comments on commit ccdb2dd

Please sign in to comment.