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 Go versions numerically #293

Merged
merged 1 commit into from
Jul 13, 2018
Merged

Conversation

HaraldNordgren
Copy link
Contributor

@HaraldNordgren HaraldNordgren commented Mar 31, 2018

With the release of Go 1.10, versions are now sorted incorrectly:

...
go1.1
go1.1.1
go1.1.2
go1.10
go1.10.1
go1.10beta1
go1.10beta2
go1.10rc1
go1.10rc2
go1.1rc2
go1.1rc3
go1.2
go1.2.1
go1.2.2
go1.2rc2
...

By applying sort -V we get version sorting, see man sort for more details

     -V, --version-sort
             Sort version numbers...

Our sorting result will then be

...
go1.8.6
go1.8.7
go1.9
go1.9beta1
go1.9beta2
go1.9rc1
go1.9rc2
go1.9.1
go1.9.2
go1.9.3
go1.9.4
go1.9.5
go1.10
go1.10beta1
go1.10beta2
go1.10rc1
go1.10rc2
go1.10.1
...

@HaraldNordgren
Copy link
Contributor Author

Ping @jbussdieker @cin210

@voxxit voxxit merged commit 178d4aa into moovweb:master Jul 13, 2018
@HaraldNordgren HaraldNordgren deleted the sort_version branch July 14, 2018 20:50
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