Insertion sort on streams.