diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-06 13:32:01 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-06 15:06:26 +0200 |
commit | a47ef52ae2958a08ff3aca272c73973eb74d20ed (patch) | |
tree | baa3247efca680ef8f282f99e2177bce8d23d2cf /apps/files_external/js/mountsfilelist.js | |
parent | 01c2c3107a8370fc57dc6144dcdcc108a92347a9 (diff) | |
download | nextcloud-server-a47ef52ae2958a08ff3aca272c73973eb74d20ed.tar.gz nextcloud-server-a47ef52ae2958a08ff3aca272c73973eb74d20ed.zip |
Fixed ext storage list sorting
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; } |