Skip to content

[FEAT] Localized Sorting Support for Non-Latin Scripts #859

@Hakuin123

Description

@Hakuin123

Is your feature request related to a problem? Please describe.
When sorting entries with Chinese titles using the "Title" and "Alphabetical" options, the vault follows Unicode codepoint order instead of the expected Chinese Pinyin alphabetical order (A-Z). As a Simplified Chinese user, this often confuses me when searching for a project in the vaults, especially when there are a large number of items.
当使用“标题”和“按字母排序”选项对中文条目排序时,当前采用 Unicode 码位顺序而非汉语拼音顺序(A-Z)。作为简体中文用户,这使得我在密码库中寻找一个项目时常常感到困惑,尤其是当条目数量较多时。

This issue likely affects all non-Latin script users (e.g., Japanese, Korean, Arabic) who expect locale-specific sorting. Bitwarden’s web app resolves this by dynamically switching sorting logic based on system language (Pinyin for Chinese, Unicode for English), but Keyguard currently lacks this adaptation.
此问题可能影响所有使用非拉丁文字的用户(如日语、韩语、阿拉伯语),因为他们需要符合语言习惯的排序规则。Bitwarden 网页版已通过系统语言动态切换排序逻辑(中文环境下启用拼音,英文保留 Unicode),但 Keyguard 尚未实现此适配。

Describe the solution you'd like
Implement locale-aware sorting:

  • Use Pinyin alphabetical order for Simplified Chinese system languages.
  • Extend similar logic to other non-Latin scripts (e.g., Kana for Japanese, Hangul for Korean).

实现区域化排序逻辑

  • 简体中文系统环境下启用拼音首字母排序;
  • 为其他非拉丁文字提供对应规则(如日语假名、韩语韩文字母顺序)。

Describe alternatives you've considered
None viable. Manual workarounds like adding Pinyin prefixes (e.g., "B_百度") are unsustainable.

无有效方案。手动添加拼音前缀(如“B_百度”)等变通方法不可持续。

Additional context

Keyguard:
Image


vault.bitwarden.com (system language is Simplified Chinese):
Image


vault.bitwarden.com (system language is English):

Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions