Skip to content

Added custom sorting on address columns #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 2, 2025
Merged

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.

2 participants