Fix ordering of games in category page, thanks to @szeraax
authorChristian Weiske <cweiske@cweiske.de>
Mon, 25 Nov 2019 05:15:08 +0000 (06:15 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Mon, 25 Nov 2019 05:15:08 +0000 (06:15 +0100)
bin/import-game-data.php

index c1d3e6d..2c7aee6 100755 (executable)
@@ -174,7 +174,7 @@ function buildDiscoverCategory($name, $games)
     usort(
         $games,
         function ($gameA, $gameB) {
-            return strcmp($gameB->title, $gameA->title);
+            return strcmp($gameA->title, $gameB->title);
         }
     );
     $chunks = array_chunk($games, 4);