Skip to content

Conversation

@thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Feb 10, 2025

When sorting utilities it was possible for a utility like duration-700 to come before duration-75 or duration-1000 to come before duration-150.

This PR fixes this behavior by reading the full "magnitude" of each numbers before we compare them.

@thecrypticace thecrypticace changed the title Fix comparison of numbers with different magnitudes Fix sorting numeric utilities when they have different magnitudes Feb 10, 2025
@thecrypticace thecrypticace marked this pull request as ready for review February 10, 2025 22:00
@thecrypticace thecrypticace requested a review from a team as a code owner February 10, 2025 22:00
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

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

🤦‍♂️

@thecrypticace thecrypticace merged commit 121cf6b into main Feb 10, 2025
5 checks passed
@thecrypticace thecrypticace deleted the fix/v4-compare-fn branch February 10, 2025 22:08
peterpeterparker added a commit to dfinity/oisy-wallet that referenced this pull request Feb 18, 2025
# Motivation We detected reproducibility issue when building v0.24.0: https://github.com/dfinity/oisy-wallet/actions/runs/13393064153 ~~I'm unsure which of the two following Tailwind fix was the reason of the problem but, bumping Tailwind to latest version seems to resolve the problem.~~ ~~Tailwind v4.0.6 - Fix [#16403](tailwindlabs/tailwindcss#16403 ~~- Revert change to no longer include theme variables that aren't used in compiled CSS ~~ ~~Tailwind v4.0.7 - Fix [#16414](tailwindlabs/tailwindcss#16414 ~~- Fix sorting of numeric utility suggestions when they have different magnitudes~~ ~~I lean towards to former though. I could have try v4.0.6 but, v4.0.7 contains interesting fixes anyway.~~ It does not resolve the issue: https://github.com/dfinity/oisy-wallet/actions/runs/13395505962/job/37413394328 # Changes - Bump `@tailwindcss/postcss`, `@tailwindcss/vite` and `tailwindcss`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants