Potentially fix score sorting issue (#721)

Update SlotPage.cshtml.cs

lel
This commit is contained in:
Dagg 2023-03-27 16:34:12 -07:00 committed by GitHub
parent 2738d04dbb
commit 307b2135a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ public class SlotPage : BaseLayout
.ToListAsync(); .ToListAsync();
this.Scores = await this.Database.Scores.OrderByDescending(s => s.Points) this.Scores = await this.Database.Scores.OrderByDescending(s => s.Points)
.ThenByDescending(s => s.ScoreId) .ThenBy(s => s.ScoreId)
.Where(s => s.SlotId == id) .Where(s => s.SlotId == id)
.Take(10) .Take(10)
.ToListAsync(); .ToListAsync();