aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/mountsfilelist.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-06 13:32:01 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-06 15:06:26 +0200
commita47ef52ae2958a08ff3aca272c73973eb74d20ed (patch)
treebaa3247efca680ef8f282f99e2177bce8d23d2cf /apps/files_external/js/mountsfilelist.js
parent01c2c3107a8370fc57dc6144dcdcc108a92347a9 (diff)
downloadnextcloud-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.js14
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;
}