Sort the mi_deps into a canonical ordering before fingerprinting.