Please apply the comparison function given to nubBy to elements of the list in the order in which they occur in the list.