I'm not sure that this is the right thing to do, but the current sorting mechanism does a string sort on the semver parts of a buildpack version. This results in an api response for a buildpack with a version series like [0.8.0, 0.9.0, 0.10.0] that specifies 0.9.0 as the latest version instead of 0.10.0.
I'm not sure that this is the right thing to do, but the current sorting mechanism does a string sort on the semver parts of a buildpack version. This results in an api response for a buildpack with a version series like
[0.8.0, 0.9.0, 0.10.0]
that specifies0.9.0
as the latest version instead of0.10.0
.For a real world example, check out the response for https://cnb-registry-api-staging.herokuapp.com//api/v1/buildpacks/paketo-buildpacks/python, which looks like the following: