Make string comparison invariant (and ordinal)