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

Fix sort order for greater than and less than range notation #32

Conversation

mattblackstone
Copy link
Contributor

Range notation support is currently valid for ">=" and "<=" but not for ">" or "<".
Example: "(max-width: 768px)" and "(width < 768px)" are treated as equivalent and will fall-through to a localCompare sort.
This edit assumes "(width < 100px)" is equivalent to "(max-width: 99px)" and "(width > 100px)" is equivalent to "(min-width: 101px)".

…ge notation > & < via localCompare is not appropriate
@OlehDutchenko OlehDutchenko merged commit d7acfc0 into OlehDutchenko:master Sep 7, 2024
1 check passed
@OlehDutchenko
Copy link
Owner

Hi @mattblackstone!
New version published on the NPM

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.

2 participants