Fix ordering of games in category page, thanks to @szeraax
[stouyapi.git] / bin / import-game-data.php
index c1d3e6d..2c7aee6 100755 (executable)
@@ -174,7 +174,7 @@ function buildDiscoverCategory($name, $games)
     usort(
         $games,
         function ($gameA, $gameB) {
     usort(
         $games,
         function ($gameA, $gameB) {
-            return strcmp($gameB->title, $gameA->title);
+            return strcmp($gameA->title, $gameB->title);
         }
     );
     $chunks = array_chunk($games, 4);
         }
     );
     $chunks = array_chunk($games, 4);