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

Small example that acts weird #13

Open
jsmedn opened this issue Feb 25, 2022 · 3 comments
Open

Small example that acts weird #13

jsmedn opened this issue Feb 25, 2022 · 3 comments

Comments

@jsmedn
Copy link

jsmedn commented Feb 25, 2022

Hi

This example doesn't come out as expected:
Unsorted: "B4S B", "B4A B", "B4 B"
Sorted: "B4A B", "B4 B", "B4S B"
Expected: "B4 B", "B4A B", "B4S B"

I'm guessing it compares A in "B4A B" to B in "B4 B".

@krasa
Copy link

krasa commented Feb 25, 2022

#12 ?

@jsmedn
Copy link
Author

jsmedn commented Feb 25, 2022

I guess they could be solved as one ticket, but ignoring whitespace between digits only would fail in this example. It would have to ignore whitespace between word-digit and digit-digit, but not digit-word or word-word. So in the case above it would have to compare:
[B, 4, ' ', B] to [B, 4, A, ' ', B]

@krasa
Copy link

krasa commented Feb 25, 2022

It would be best to have the ignoring configurable for all those cases.

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

No branches or pull requests

2 participants