sorted abstract method

DoubleStream sorted()

Returns the stream sorted in natural (ascending) order.

Example

final sorted = DoubleStream.of([3.5, 1.5, 4.5, 2.5])
    .sorted();

Implementation

DoubleStream sorted();