Skip to content
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

Update asset sorting method to match other sdk's #605

Closed
wants to merge 2 commits into from

Conversation

silence48
Copy link
Contributor

In order to fix #593
I update the asciicompare function to properly sort upper case letters before lower case regardless of their position of the alphabet.

We should probably add some better fuzz tests also. Also someone else should review + test this before merging it as I only spent a short time on it.

Thanks!

I update the asciicompare function to properly sort upper case letters before lower case regardless of their position of the alphabet.
each is a string not a number, but we need a number to properly compare the length so we set a variable called letter pos using parseInt(each)
@paulbellamy
Copy link
Contributor

Thanks so much for the PR, this is great. I pulled it into #606, and did a bit of refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lexicographical sorting is not in pair with what the network expects
2 participants