ignore case when sorting games by name
authorChristian Weiske <cweiske@cweiske.de>
Wed, 8 Jan 2020 21:56:43 +0000 (22:56 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 8 Jan 2020 21:56:43 +0000 (22:56 +0100)
bin/import-game-data.php

index 5486ef5..e5d62e9 100755 (executable)
@@ -215,7 +215,7 @@ function buildDiscoverCategory($name, $games)
     usort(
         $games,
         function ($gameA, $gameB) {
-            return strcmp($gameA->title, $gameB->title);
+            return strcasecmp($gameA->title, $gameB->title);
         }
     );
     $chunks = array_chunk($games, 4);