aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-12 10:54:44 +0200
committerGitHub <noreply@github.com>2018-04-12 10:54:44 +0200
commitd3f2b6aef48938b3cf209bddcb341a6735ad5609 (patch)
tree8ebf3d9b1839e6c3daa9e4ea5f2f17cf9bc228a2 /core/js
parentaf53f48ce238cbf614d399b74ec356a45743706f (diff)
parent6bac63adecf837fcc6be4cc84174ca1aabf707eb (diff)
downloadnextcloud-server-d3f2b6aef48938b3cf209bddcb341a6735ad5609.tar.gz
nextcloud-server-d3f2b6aef48938b3cf209bddcb341a6735ad5609.zip
Merge pull request #8820 from nextcloud/mtime-sort
Sorts filepicker files by modified date
Diffstat (limited to 'core/js')
-rw-r--r--core/js/oc-dialogs.js2
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);
}
});