aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-05-07 18:39:24 +0200
committerGitHub <noreply@github.com>2018-05-07 18:39:24 +0200
commit43c1e51a5fe204e6148f84fe3bf26490ed5db91f (patch)
treefca0472849ba1c2fae9f62bd985b712c8243a293 /core/js
parentcc359be048339d03bd2516deccf16c8c91f6a8bd (diff)
parente977246d7c6efdf663914c633260224ffe42b9ce (diff)
downloadnextcloud-server-43c1e51a5fe204e6148f84fe3bf26490ed5db91f.tar.gz
nextcloud-server-43c1e51a5fe204e6148f84fe3bf26490ed5db91f.zip
Merge pull request #9151 from UncleAlbie/dialog-sort
Sort files in dialog by name.
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 fae6536e480..97b9d91023d 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 -(a.mtime - b.mtime);
+ return a.name.localeCompare(b.name, undefined, {numeric: true});
}
});