jfrog / gocenter

The Github README for JFrog Go-center. Use this for reporting issues
https://gocenter.io
Apache License 2.0
164 stars 23 forks source link

Sort versions semantically instead of lexically #9

Closed elioengcomp closed 5 years ago

elioengcomp commented 5 years ago

As pointed out by thepudds on the gocenter slack channel:

You might also want to sort that table so that is shows most recent versions first? E.g., maybe use something like: https://github.com/rogpeppe/go-internal/blob/master/semver/semver.go#L115 (edited) Right now, it looks like a purely lexical sort order and ignoring the syntax and precedence of semver, which means a v0.11.0 is at the bottom while a v0.9.0 is near the top, as seen here: https://search.gocenter.io/github.com~2Fgoph~2Flogur/versions

To help us debug your issue please confirm the following :

ankushchadha commented 5 years ago

Fixes rolled out to prod. Backend fixes were rolled out last week.