Fixed ext storage list sorting
This commit is contained in:
parent
01c2c3107a
commit
a47ef52ae2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue