Oops
authorCameron Ball <c.ball1729@gmail.com>
Sat, 21 Feb 2015 09:09:11 +0000 (17:09 +0800)
committerCameron Ball <c.ball1729@gmail.com>
Sat, 21 Feb 2015 09:09:11 +0000 (17:09 +0800)
Controllers/SimfileCacheController.php
Services/CacheUpdater.php

index 5281bf5..e33377c 100644 (file)
@@ -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));
index e40709f..5fb5169 100644 (file)
@@ -31,7 +31,7 @@ class CacheUpdater implements ICacheUpdater
     {\r
         usort($this->_json['packs'], function($a, $b)\r
         {\r
-            return strcmp($a['title'], $b['title']);\r
+            return strcasecmp($a['title'], $b['title']);\r
         });\r
             \r
         file_put_contents('../SimfileCache/simfiles.json',json_encode($this->_json));\r