From: Joas Schilling Date: Mon, 18 Jan 2016 10:13:09 +0000 (+0100) Subject: Sort the list before saving X-Git-Tag: v9.0beta1~263^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc08f71c126988872ca4a212e03ee33f33ea4b54;p=nextcloud-server.git Sort the list before saving --- 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