public void setAscending(boolean asc) {
            sortOrder = asc ? Order.ASCENDING : Order.DESCENDING;
        }
Decide if sortorder is ascending or not.
container-search/src/main/java/com/yahoo/search/query/Sorting.java