impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
17 stars 4 forks source link

feat(backend): add sorting based on locale #191

Closed Oran-Dan closed 2 months ago

Oran-Dan commented 2 months ago

Description of change

I've added a helper function to sort names respective to the locale selected by the user. The sorting is also Unicode (NFC normalization form) compatible. I've added unit and integration testing for the new functionality. I've implemented the sorting function in all actions which change the connections/credentials field.

Resources: https://sts10.github.io/2023/01/29/sorting-words-alphabetically-rust.html https://www.unicode.org/reports/tr15/#Norm_Forms

Links to any relevant issues

How the change has been tested

Tests can be found in identity-wallet/unime/src-tauri/tests/tests/sorting.rs

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.

nanderstabel commented 2 months ago

Looks like your branch has some conflicts that need to be resolved first.