turms-im / turms

🕊️ The world's most advanced open source instant messaging engine for 100K~10M concurrent users https://turms-im.github.io/docs
Apache License 2.0
1.78k stars 280 forks source link

Support sorting returned records (e.g. group members) by Unicode Collation order on the server side #1566

Open JamesChenX opened 1 week ago

JamesChenX commented 1 week ago

Use Cases

Reasons to implement on the server side

  1. Not all programming language SDKs and their ecosystem have good support for the Unicode Collation Algorithm. e.g. Dart.
  2. Even though some SDKs and libraries (e.g. icu4x) can support it, they still need to import the ICU data, which is large (>1MB) for client applications. More locales are supported, and more data needs to be imported.