Sort the given words according to length.
river, ocean, lake, stream
Sorted words according to their length: lake, river, ocean, stream.
Complete the following task based on the instruction and optional input provided.### Instruction:
Sort the given words according to length.

### Input:
river, ocean, lake, stream

### Output:
Sorted words according to their length: lake, river, ocean, stream.