reactor-core/src/main/java/reactor/core/publisher/Flux.java
public final Flux<T> sort(Comparator<? super T> sortFunction) {
		return collectSortedList(sortFunction).flatMapIterable(identityFunction());
	}
public final Flux<T> sort(Comparator<? super T> sortFunction) {
		return collectSortedList(sortFunction).flatMapIterable(identityFunction());
	}
Sort elements from this {@link Flux} using a {@link Comparator} function, by
collecting and sorting elements in the background then emitting the sorted sequence
once this sequence completes.

<p>Note that calling {@code sort} with long, non-terminating or infinite sources
might cause {@link OutOfMemoryError}
<p>
<img class="marble" src="doc-files/marbles/sort.svg" alt="">

@param sortFunction a function that compares two items emitted by this {@link Flux}
to indicate their sort order
@return a sorted {@link Flux}