Merge pull request #8820 from nextcloud/mtime-sort

Sorts filepicker files by modified date
This commit is contained in:
Morris Jobke 2018-04-12 10:54:44 +02:00 committed by GitHub
commit d3f2b6aef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -847,7 +847,7 @@ var OCdialogs = {
} else if(a.type !== 'dir' && b.type === 'dir') {
return 1;
} else {
return 0;
return -(a.mtime - b.mtime);
}
});