. . . "When I try implementing the comparator, I get the error: 'The operator '<' is undefined for argument types A, A ..." .