diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-12 10:54:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 10:54:44 +0200 |
commit | d3f2b6aef48938b3cf209bddcb341a6735ad5609 (patch) | |
tree | 8ebf3d9b1839e6c3daa9e4ea5f2f17cf9bc228a2 | |
parent | af53f48ce238cbf614d399b74ec356a45743706f (diff) | |
parent | 6bac63adecf837fcc6be4cc84174ca1aabf707eb (diff) | |
download | nextcloud-server-d3f2b6aef48938b3cf209bddcb341a6735ad5609.tar.gz nextcloud-server-d3f2b6aef48938b3cf209bddcb341a6735ad5609.zip |
Merge pull request #8820 from nextcloud/mtime-sort
Sorts filepicker files by modified date
-rw-r--r-- | core/js/oc-dialogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 9cd806720b8..fae6536e480 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -847,7 +847,7 @@ var OCdialogs = { } else if(a.type !== 'dir' && b.type === 'dir') { return 1; } else { - return 0; + return -(a.mtime - b.mtime); } }); |