Skip to content

Commit

Permalink
fix(hubs): remediate subset sorting issues (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored May 23, 2023
1 parent 1247e70 commit 3493709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app_legacy/Helpers/database/game.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ function getGameAlternatives(int $gameID, ?int $sortBy = null): array
11 => "ORDER BY HasAchievements ASC, gd.Title DESC",
2 => "ORDER BY gd.TotalTruePoints DESC, gd.Title ASC ",
12 => "ORDER BY gd.TotalTruePoints, gd.Title ASC ",
// 1 or unspecified
default => "ORDER BY HasAchievements DESC, gd.Title ",
// 1 or unspecified
default => "ORDER BY HasAchievements DESC, SUBSTRING_INDEX(gd.Title, ' [', 1), c.Name, gd.Title ",
};

$query = "SELECT gameIDAlt, gd.Title, gd.ImageIcon, c.Name AS ConsoleName,
Expand Down

0 comments on commit 3493709

Please sign in to comment.