From: Christian Weiske Date: Wed, 8 Jan 2020 21:56:43 +0000 (+0100) Subject: ignore case when sorting games by name X-Git-Tag: v1.0.0~18 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/01698ecd0a45f26ce98ed2b88a39704a6f356339?ds=sidebyside ignore case when sorting games by name --- 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);