This commit is contained in:
Lars Behrends
2025-11-01 22:00:30 +01:00
parent cd16867390
commit 7a7977d8b0
13 changed files with 2011 additions and 559 deletions

View File

@@ -358,7 +358,9 @@ class Game extends Model
'added_asc' => 'added_at ASC NULLS LAST',
'added_desc' => 'added_at DESC NULLS LAST',
'last_played_asc' => 'last_played_at ASC NULLS LAST',
'last_played_desc' => 'last_played_at DESC NULLS LAST'
'last_played_desc' => 'last_played_at DESC NULLS LAST',
'platforms_asc' => 'platform_count ASC',
'platforms_desc' => 'platform_count DESC'
];
$sortClause = $sortOptions[$sort] ?? 'title ASC';