diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-05-07 18:39:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 18:39:24 +0200 |
commit | 43c1e51a5fe204e6148f84fe3bf26490ed5db91f (patch) | |
tree | fca0472849ba1c2fae9f62bd985b712c8243a293 /core/js | |
parent | cc359be048339d03bd2516deccf16c8c91f6a8bd (diff) | |
parent | e977246d7c6efdf663914c633260224ffe42b9ce (diff) | |
download | nextcloud-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.js | 2 |
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}); } }); |