yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

No explicit ordering for a `GeometricUnit` display #60

Closed yunruse closed 11 months ago

yunruse commented 11 months ago

in-development for Noether 1.0.1, str(joule / (kilogram * kelvin)) will return one of the following:

joule / kilogram / kelvin
joule / kelvin / kilogram

Which it displays is almost random, which obviously annoys tests and leaves display inconsistent.

An internal sorting mechanism for GeometricUnit.items() would be useful, just like for Dimension.

It wouldn't hurt to check what the SI itself has to say about this, but if they have nothing to say I'd sort by: