A comparator that works for all Named objects (not just BasicNamed).
Syntax
int
compare
(
T
t1
,
T
t2
)
Parameters
-
t1 –
the first named object to compare.
-
t2 –
the second named object to compare.
Returns
an integer representing the result of the comparison (0 indicating identical named objects).