Get lastest package sort bug

I want get the most lastest package version number, the PROBLEM: the ordering is confused with the versions

EXAMPLE:
latest version: 0.0.14

request https://gitlab.com/api/v4/projects/ID/packages?order_by=version&sort=desc

return first the version 0.0.9

[ {
  name: "packageName",
  version: "0.0.9"
},
{
  version: "0.0.8"
},
// ...
{
  version: "0.0.2"
},
{
  version: "0.0.14"
},

Hi,

might be a bug on ordering by semantic version strings (or the order_by only understands integer versions). Can you open a new issue please?

Cheers,
Michael

1 Like