Open
Description
I feel like having a sortedTo(factory)
(as well as all the other sorting variants) on Iterator
would be a good addition.
It would be good to discuss if it can produce any performance advantage over iterator.to(factory).sorted
or if it can be considered useful just as an API improvement to avoid two calls.
It is also worth discussing if this would be useful for all collections in general; for example, list.sortedTo(ArraySeq)
.