Fixed ext storage list sorting

This commit is contained in:
Vincent Petry 2014-06-06 13:32:01 +02:00
parent 01c2c3107a
commit a47ef52ae2
1 changed files with 6 additions and 8 deletions

View File

@ -99,14 +99,12 @@
* @return array of file info maps * @return array of file info maps
*/ */
_makeFiles: function(data) { _makeFiles: function(data) {
var files = _.chain(data) var files = _.map(data, function(fileData) {
.map(function(fileData) { fileData.icon = OC.imagePath('core', 'filetypes/folder-external');
fileData.icon = OC.imagePath('core', 'filetypes/folder-external'); return fileData;
return fileData; });
})
// Sort by expected sort comparator files.sort(this._sortComparator);
.sortBy(this._sortComparator)
.value();
return files; return files;
} }