Skip to content

Commit

Permalink
change order by avg_mmr, not avg_rank_tier
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Jun 21, 2023
1 parent 9bbecb1 commit 2d3e1c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,9 +1182,9 @@ const spec = {
let moreThan = lessThan - 1000000;
let order = "";
if (req.query.mmr_ascending) {
order = "ORDER BY avg_rank_tier ASC NULLS LAST";
order = "ORDER BY avg_mmr ASC NULLS LAST";
} else if (req.query.mmr_descending) {
order = "ORDER BY avg_rank_tier DESC NULLS LAST";
order = "ORDER BY avg_mmr DESC NULLS LAST";
} else {
order = "ORDER BY match_id DESC";
moreThan = 0;
Expand Down

0 comments on commit 2d3e1c0

Please sign in to comment.