Order scores by id then by points

Closes #418
This commit is contained in:
jvyden 2022-08-14 19:08:43 -04:00
parent 67bad4fd1e
commit b5abe7738d
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -123,8 +123,10 @@ public class ScoreController : ControllerBase
// This is hella ugly but it technically assigns the proper rank to a score // This is hella ugly but it technically assigns the proper rank to a score
// var needed for Anonymous type returned from SELECT // var needed for Anonymous type returned from SELECT
var rankedScores = this.database.Scores.Where(s => s.SlotId == slotId && s.Type == type) var rankedScores = this.database.Scores
.OrderByDescending(s => s.Points) .Where(s => s.SlotId == slotId && s.Type == type)
.OrderBy(s => s.ScoreId)
.ThenByDescending(s => s.Points)
.ToList() .ToList()
.Select .Select
( (