Make eq generation consistent

This sorts things so that the output is always the same, but it doesn't solve
the fundamental issue of packages with the same name and version but different
build strings comparing the same.