Java Streams: How to Sort Your Elements Need to sort elements in a Stream sequence? That's the easiest thing in the world to do.