manage different versions of the same package in different requirements, by selecting the highest version
refactor
output is sorted alphabetically by distro name
avoiding duplicate packages in output