Fix comparing non-digit part if the shorter one is included the longer
one.  Longger one must be greater.