Checking the comparer method.