Skip to content

Add locale-aware sorting #1399

Open
Open
@PIG208

Description

@PIG208

For mentions auto-completion, one of the comparators we have compares user names alphabetically using String.compareTo. Ideally, we should support locale-aware sorting using realm/user language settings.


Quoting Greg from #1165 (comment) :

Yeah, I think using an ICU library via FFI is probably the full solution. That could be something we do ourselves once FFI support is more mature, as the Flutter roadmap calls for next year. Or it looks like people are working on building such a thing for everyone (and for the full scope of ICU functionality): package:icu4x, published by "unicode.org". Still a work in progress but has Unicode engineers working with the Dart team to build the things they need to make it all work:

(And that is indeed using FFI; here's the Dart code implementing Collator.compare.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-composeCompose box, autocomplete, attaching files/imagesa-i18nTranslation, localization, internationalization

    Type

    No type

    Projects

    • Status

      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions