From a47ef52ae2958a08ff3aca272c73973eb74d20ed Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 6 Jun 2014 13:32:01 +0200 Subject: Fixed ext storage list sorting --- apps/files_external/js/mountsfilelist.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'apps/files_external/js/mountsfilelist.js') 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; } -- cgit v1.2.3