Made compareTo methods of NamedNumber's subclasses more reasonable.