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();
this.Scores = await this.Database.Scores.OrderByDescending(s => s.Points)
.ThenByDescending(s => s.ScoreId)
.ThenBy(s => s.ScoreId)
.Where(s => s.SlotId == id)
.Take(10)
.ToListAsync();
@ -122,4 +122,4 @@ public class SlotPage : BaseLayout
return this.Page();
}
}
}