sort hashes for reproducibility