@Override
    public void stop() {
        //Do nothing
    }
Sample Query:
from inputStream#window.sort(5, attribute1, "asc", attribute2, "desc")
select attribute1, attribute2
insert into outputStream;
<p>
Description:
In the example query given, 5 is the size of the window.
The arguments following the size of the window are optional.
If neither "asc" nor "desc" is given for a certain attribute, order defaults to "asc"
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/window/SortWindowProcessor.java