praeclarum / fuget

http://fuget.azurewebsites.net
MIT License
10 stars 2 forks source link

Versions of a package are not always ordered correctly #2

Open bitbonk opened 5 years ago

bitbonk commented 5 years ago

When I go to https://www.fuget.org/packages/Microsoft.Extensions.Hosting fuget does not show me the latest version of that package by default.

Currently it show version 2.2.0-preview3-35497 by default. But there is a newer vesion: 2.2.0

When I open the version combobox I see why. The ordering does neither respect the semantic versioning order nor is it ordered by release date.

image

From Semantic Versioning 2.0.0:

A larger set of pre-release fields has a higher precedence than a smaller set, if all of the preceding identifiers are equal. Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0

svick commented 5 years ago

@praeclarum I think this issue can be closed now.