Oh, nevermind. I misread this and thought it was sorting the contents of the dict, which would be silly since dicts are unordered. This is fine.