]> source.dussan.org Git - nextcloud-server.git/commitdiff
Sort the list before saving
authorJoas Schilling <nickvergessen@owncloud.com>
Mon, 18 Jan 2016 10:13:09 +0000 (11:13 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Mon, 18 Jan 2016 10:13:09 +0000 (11:13 +0100)
core/command/maintenance/mimetype/updatejs.php

index e93b563d5fbf2ab8e6d29ad7a5f3b38efa11f110..8ee06e8cdc97db1e1f3f200b94581bcdb0dcfb3b 100644 (file)
@@ -71,6 +71,7 @@ class UpdateJS extends Command {
 
                //Remove duplicates
                $files = array_values(array_unique($files));
+               sort($files);
 
                // Fetch all themes!
                $themes = [];
@@ -100,6 +101,7 @@ class UpdateJS extends Command {
 
                        //Remove Duplicates
                        $themes[$theme] = array_values(array_unique($themes[$theme]));
+                       sort($themes[$theme]);
                }
 
                //Generate the JS