Fix compare for numeric format