diff options
author | Patrik Novotný <patrik.novotny@gmx.com> | 2018-04-11 15:32:22 +0200 |
---|---|---|
committer | Patrik Novotný <patrik.novotny@gmx.com> | 2018-04-18 08:44:40 +0200 |
commit | e977246d7c6efdf663914c633260224ffe42b9ce (patch) | |
tree | 9f6f40fabba3de1e20745f091a2c20bc69f0c288 /core/js | |
parent | d4aa4ff1f49672d44812e5f6e76e39c8e9c91ecf (diff) | |
download | nextcloud-server-e977246d7c6efdf663914c633260224ffe42b9ce.tar.gz nextcloud-server-e977246d7c6efdf663914c633260224ffe42b9ce.zip |
Sort files in dialog by name.
Signed-off-by: Patrik Novotný <patrik.novotny@gmx.com>
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}); } }); |