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
*/
_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;
}