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

Sort versions chronologically instead of alphabetically #133

Closed
ardislu opened this issue Dec 8, 2022 · 0 comments · Fixed by #134
Closed

Sort versions chronologically instead of alphabetically #133

ardislu opened this issue Dec 8, 2022 · 0 comments · Fixed by #134
Milestone

Comments

@ardislu
Copy link
Contributor

ardislu commented Dec 8, 2022

Currently, the solc-select versions output is sorted alphabetically, like this:

$ solc-select versions
0.8.9
0.8.17 (current, set by /home/ubuntu/.virtualenvs/solc-select-dev/.solc-select/global-version)
0.8.10
0.8.0
0.6.5
0.6.0

But I think it'd be easier to read if it was sorted chronologically, like this:

$ solc-select versions
0.6.0
0.6.5
0.8.0
0.8.9
0.8.10
0.8.17 (current, set by /home/ubuntu/.virtualenvs/solc-select-dev/.solc-select/global-version)

Similar projects like nvm also sort chronologically. Example nvm output:

$ nvm ls-remote

(...)

        v18.9.0
        v18.9.1
       v18.10.0
       v18.11.0
       v18.12.0   (LTS: Hydrogen)
       v18.12.1   (Latest LTS: Hydrogen)
        v19.0.0
        v19.0.1
->      v19.1.0
        v19.2.0
@elopez elopez added this to the v1.1.0 milestone Jan 2, 2025
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 a pull request may close this issue.

2 participants