Changed compareTo function parameters