From 01698ecd0a45f26ce98ed2b88a39704a6f356339 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 8 Jan 2020 22:56:43 +0100 Subject: [PATCH] ignore case when sorting games by name --- bin/import-game-data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/import-game-data.php b/bin/import-game-data.php index 5486ef5..e5d62e9 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -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); -- 2.30.2