Is it possible in Java Stream sorting while reduce? : I need to sort my stream after every reduce operation. Is it possible to do something like this with using Java Stream or should I just use loop for that?
[example][1]


  [1]: https://i.stack.imgur.com/FIBrM.png
I know, that reduce does not work like this, but this is the idea.

Thanks a lot.