Given API request for a package
When 2 different releases occured at the same time
Then the latest_stable_release_number occurs not the be the highest release number
Way to reproduce:
- call API for markbaker/matrix
- latest_stable_release_number is 2.1.4
- Should be 3.0.1
Release number indicated on web page is also erroneous
Proof
See https://libraries.io/packagist/markbaker%2Fmatrix
Way to fix
- Select all matching releases with last release date
- Sort select on descending release number
- Select the first on