sort
Mahmoud Ben Hassine edited this page Nov 8, 2015
·
3 revisions
Sorts a stream in the natural order of its elements.
This is an alias for sorted.
N/A
Stream<String> stream = Stream.of("b", "a", "c");
UnixStream.unixify(stream)
.sort()
.to(stdOut()); // prints "a", "b", "c"
// Or
UnixStream.from(stream)
.pipe(sort())
.to(stdOut()); // prints "a", "b", "c"
UnixStream is created with passion by Mahmoud Ben Hassine