Sort multiplicative units for deterministic conversion.

This commit is contained in:
Nevada Sanchez
2016-01-21 14:15:25 -05:00
parent 7edf3fee67
commit 2bf041f46d

View File

@@ -944,7 +944,7 @@ class UnitRegistry(object):
return base_factor, destination_units
def _get_root_units_recurse(self, ref, exp, accumulators):
for key in ref:
for key in sorted(ref):
exp2 = exp*ref[key]
key = self.get_name(key)
reg = self._units[key]