Make iterating over dict values deterministic