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

Orchard Gallery Version Sort Order Incorrect #4

Open
davegardner opened this issue Dec 21, 2015 · 2 comments
Open

Orchard Gallery Version Sort Order Incorrect #4

davegardner opened this issue Dec 21, 2015 · 2 comments

Comments

@davegardner
Copy link

The new orchard Gallery website does not cope with version numbers where the last component is > 9. Consequently, it thinks version 3.3.5.9 is the latest version when it should be 3.3.5.11. See screenshot.

orchardgallerywrongorder

@SzymonSel
Copy link
Member

Yup, looks like alphanumeric instead of numeric ordering

@sebastienros
Copy link
Member

Welcome in the beautiful world of Semver v1 vs. Sermver v2. And Nuget uses Sermver v1, as did the gallery v1 because Nuget was also using this gallery. This is why ASP.NET packages for instance have something like 4.0.0.9000 instead of 4.0.0.9 because 4.0.0.10 is actually smaller than 4.0.0.9 with Semver 1. This is to support rc > beta > alpha

Conclusion is that you should only use 3 parts in the version as they work as expected (10 > 9) and the 4th part is in alphanumeric order.

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

No branches or pull requests

3 participants