summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-18 11:13:09 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-18 11:13:09 +0100
commitfc08f71c126988872ca4a212e03ee33f33ea4b54 (patch)
tree83657ebe6631961034c9bc9c19df0bf28d62cbd4 /core/command
parente4d5229940526352378f0141de4c9a6fd53611a9 (diff)
downloadnextcloud-server-fc08f71c126988872ca4a212e03ee33f33ea4b54.tar.gz
nextcloud-server-fc08f71c126988872ca4a212e03ee33f33ea4b54.zip
Sort the list before saving
Diffstat (limited to 'core/command')
-rw-r--r--core/command/maintenance/mimetype/updatejs.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/command/maintenance/mimetype/updatejs.php b/core/command/maintenance/mimetype/updatejs.php
index e93b563d5fb..8ee06e8cdc9 100644
--- a/core/command/maintenance/mimetype/updatejs.php
+++ b/core/command/maintenance/mimetype/updatejs.php
@@ -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