浏览代码

Merge pull request #13730 from nextcloud/fix/naturalsort-locale

Respect user locale in natural sort comparator
tags/v16.0.0alpha1
Morris Jobke 5 年前
父节点
当前提交
d59de22525
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2
    5
      core/js/js.js

+ 2
- 5
core/js/js.js 查看文件

@@ -2082,12 +2082,9 @@ OC.Util = {
if (aNum == aa[x] && bNum == bb[x]) {
return aNum - bNum;
} else {
// Forcing 'en' locale to match the server-side locale which is
// always 'en'.
//
// Note: This setting isn't supported by all browsers but for the ones
// Note: This locale setting isn't supported by all browsers but for the ones
// that do there will be more consistency between client-server sorting
return aa[x].localeCompare(bb[x], 'en');
return aa[x].localeCompare(bb[x], OC.getLanguage());
}
}
}

正在加载...
取消
保存