Append a new value
Clear all previously stored values
Sort all values by the provided comparator and return an iterator over the sorted values
Returns the number of values appended so far