Stream.sorted: The `sorted` method in the Stream API returns a stream where elements are sorted in their natural order or according to a provided comparator. This method is often used when sorting a stream before further operations.

https://en.wikipedia.org/wiki/Java_version_history#JDK_8