Added comparator to collection.