mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-10 12:12:27 +00:00
parent
67bad4fd1e
commit
b5abe7738d
1 changed files with 4 additions and 2 deletions
|
@ -123,8 +123,10 @@ public class ScoreController : ControllerBase
|
|||
|
||||
// This is hella ugly but it technically assigns the proper rank to a score
|
||||
// var needed for Anonymous type returned from SELECT
|
||||
var rankedScores = this.database.Scores.Where(s => s.SlotId == slotId && s.Type == type)
|
||||
.OrderByDescending(s => s.Points)
|
||||
var rankedScores = this.database.Scores
|
||||
.Where(s => s.SlotId == slotId && s.Type == type)
|
||||
.OrderBy(s => s.ScoreId)
|
||||
.ThenByDescending(s => s.Points)
|
||||
.ToList()
|
||||
.Select
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue