mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-10 20:22:28 +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
|
// 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
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue