#716: Implement compareTo