summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSagorika Das <sagorika1996@gmail.com>2018-03-14 18:11:50 +0530
committerSagorika Das <sagorika1996@gmail.com>2018-03-14 18:11:50 +0530
commit6bac63adecf837fcc6be4cc84174ca1aabf707eb (patch)
tree761079a105cdddd9967706e8647b0dee960022ee /core
parent8e47f10714268ce5badac58294699061c749a230 (diff)
downloadnextcloud-server-6bac63adecf837fcc6be4cc84174ca1aabf707eb.tar.gz
nextcloud-server-6bac63adecf837fcc6be4cc84174ca1aabf707eb.zip
sorts filepicker files by modified date
Signed-off-by: Sagorika Das <sagorika1996@gmail.com>
Diffstat (limited to 'core')
-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);
}
});