Skip to content

Conversation

@MarielaTihova
Copy link
Contributor

No description provided.

compareValues(a: any, b: any): number {
const addressA = this.formatter(a)?.toLowerCase() ?? '';
const addressB = this.formatter(b)?.toLowerCase() ?? '';
return addressA.localeCompare(addressB);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if localeCompare is the best way to sort addresses.

There could be some unexpected results:
image

Starting to think if we should simply disable the sorting for adress and full address. How about that?

@dkamburov dkamburov added the ✅ status: verified Applies to PRs that have passed manual verification label May 2, 2025
@dkamburov dkamburov merged commit 919413c into vnext May 2, 2025
2 checks passed
@dkamburov dkamburov deleted the mtihova/erp-fixes branch May 2, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants