Sort the output of dedup by the hash's hex digest.