fix warehouse.Package/PackageVersion by_published_order method