Prevent Scala weirdness by explicit ordering