Add comparator to the linked list.