diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-16 17:29:03 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-16 17:29:03 +0200 |
commit | d2743e6ad66ba6827a0e49487ed83667671895c8 (patch) | |
tree | 1d50bf0f5364779e3f9e407a126d5694e69f4f00 /apps/files/js | |
parent | 4669ea38357f3f33caaf056d859e6318b75b72e1 (diff) | |
parent | f2001a48a4e91bc6427a2a63ba9022ceaf1d305d (diff) | |
download | nextcloud-server-d2743e6ad66ba6827a0e49487ed83667671895c8.tar.gz nextcloud-server-d2743e6ad66ba6827a0e49487ed83667671895c8.zip |
Merge pull request #7254 from owncloud/core-sortalgo
Fixed JS sort comparator to be consistent between JS and PHP
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7c49c540d85..1aabfb91f1f 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1971,7 +1971,7 @@ if (fileInfo1.type !== 'dir' && fileInfo2.type === 'dir') { return 1; } - return fileInfo1.name.localeCompare(fileInfo2.name); + return OC.Util.naturalSortCompare(fileInfo1.name, fileInfo2.name); }, /** * Compares two file infos by size. |