public Selector orderBy(Variable variable, OrderByAttribute.Order order) {

        orderByList.add(new OrderByAttribute(variable, order));
        return this;
    }
Selector selecting query output stream attributes
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/selection/Selector.java