From d946945a64d6375f28cbecc2602b87cb14e86648 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sat, 21 Feb 2015 17:09:11 +0800 Subject: [PATCH] Oops --- Controllers/SimfileCacheController.php | 2 +- Services/CacheUpdater.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/SimfileCacheController.php b/Controllers/SimfileCacheController.php index 5281bf5..e33377c 100644 --- a/Controllers/SimfileCacheController.php +++ b/Controllers/SimfileCacheController.php @@ -75,7 +75,7 @@ class SimfileCacheController implements IDivineController usort($completeArray['packs'], function($a, $b) { - return strcmp($a['title'], $b['title']); + return strcasecmp($a['title'], $b['title']); }); file_put_contents('../SimfileCache/simfiles.json',json_encode($completeArray)); diff --git a/Services/CacheUpdater.php b/Services/CacheUpdater.php index e40709f..5fb5169 100644 --- a/Services/CacheUpdater.php +++ b/Services/CacheUpdater.php @@ -31,7 +31,7 @@ class CacheUpdater implements ICacheUpdater { usort($this->_json['packs'], function($a, $b) { - return strcmp($a['title'], $b['title']); + return strcasecmp($a['title'], $b['title']); }); file_put_contents('../SimfileCache/simfiles.json',json_encode($this->_json)); -- 2.11.0