tv elm-package-proxy /all-packages/since/*: order!

This commit is contained in:
tv 2021-10-26 14:51:42 +02:00
parent e35b2c6fc4
commit 2245c818a4

View File

@ -274,7 +274,7 @@ in {
select(.!="") | select(.!="") |
sub("^\\./(?<author>[^/]+)/(?<pname>[^/]+)/(?<version>[^/]+)$";"\(.author)/\(.pname)@\(.version)") sub("^\\./(?<author>[^/]+)/(?<pname>[^/]+)/(?<version>[^/]+)$";"\(.author)/\(.pname)@\(.version)")
) | ) |
sort_by(split("@") | [.[0]]+(.[1]|split("."))) | sort_by(split("@") | [.[0]]+(.[1]|split(".")|map(tonumber))) |
reverse reverse
' '
} | } |