Sort package versions on a branch by version as well

To fix the order when the first_datetime matches.
This commit is contained in:
Christopher Baines 2019-10-08 19:44:09 +01:00
parent dbe171bc75
commit ab8a02cf13

View file

@ -227,7 +227,7 @@ INNER JOIN git_branches AS last_git_branches
WHERE package_name = $1
AND package_versions_by_guix_revision_range.git_repository_id = $2
AND package_versions_by_guix_revision_range.branch_name = $3
ORDER BY first_datetime DESC"
ORDER BY first_datetime DESC, package_version DESC"
(list package-name
(number->string git-repository-id)
branch-name)))