Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Dec 2, 2024
1 parent 129e6e3 commit 0353cbf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,9 +1030,10 @@ private async Task ProcessStageRankingsAsync()
a.Name, a.AvatarLevel, a.TitleId, a.ArmorId, a.Cp
FROM HackAndSlashes hs
LEFT JOIN Avatars a ON hs.AvatarAddress = a.Address
WHERE hs.Mimisbrunnr = 0 AND hs.Cleared = 1"))
.OrderByDescending(data => data.StageId) // Sort stageData by ClearedStageId (StageId) in descending order
.ThenBy(data => data.BlockIndex) // Optional: Secondary sort by BlockIndex
WHERE hs.Mimisbrunnr = 0 AND hs.Cleared = 1")).ToList(); // Fetch all data first

stageData = stageData.OrderByDescending(data => data.StageId) // Sort by StageId in descending order
.ThenBy(data => data.BlockIndex) // Then sort by BlockIndex in ascending order
.ToList();

// Process rankings
Expand Down

0 comments on commit 0353cbf

Please sign in to comment.