-
Notifications
You must be signed in to change notification settings - Fork 352
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
Java Temurin wrong version sort order #928
Comments
we sort these using the rust looking at the output of |
What I find odds is sometimes it sorts correctly, for example
Also, I think |
I think what needs to happen is 2 things:
As far as what the override function could be, I'm not really sure how best to use the PartialOrd trait here but maybe we could just start with this: fn partial_cmp(a: &str, b: &str) -> Option<std::cmp::Ordering> If someone wanted to write that function even just for temurin, it could just be a simple playground script that I can work to integrate in the codebase. |
I think I managed to resolve this actually without needing to do what I mentioned before. Now rtx uses https://rtx-versions.jdx.dev/java for the versions which I pipe through
|
Describe the bug
Java Temurin-17 is having a newer version that appears before an older version.
Expected behavior
The versions should be in correct order
rtx doctor
outputThe text was updated successfully, but these errors were encountered: