diff options
Diffstat (limited to 'apps/files_external/js/mountsfilelist.js')
-rw-r--r-- | apps/files_external/js/mountsfilelist.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/files_external/js/mountsfilelist.js b/apps/files_external/js/mountsfilelist.js index 52a9aff728c..fffe994268f 100644 --- a/apps/files_external/js/mountsfilelist.js +++ b/apps/files_external/js/mountsfilelist.js @@ -99,14 +99,12 @@ * @return array of file info maps */ _makeFiles: function(data) { - var files = _.chain(data) - .map(function(fileData) { - fileData.icon = OC.imagePath('core', 'filetypes/folder-external'); - return fileData; - }) - // Sort by expected sort comparator - .sortBy(this._sortComparator) - .value(); + var files = _.map(data, function(fileData) { + fileData.icon = OC.imagePath('core', 'filetypes/folder-external'); + return fileData; + }); + + files.sort(this._sortComparator); return files; } |