[Forge] Change compareTo() for commands to fix a Comparable contract issue.