public SearchResourcesRequest withOrderBy(SearchSortResult... orderBy) {
        if (this.orderBy == null) {
            setOrderBy(new java.util.ArrayList<SearchSortResult>(orderBy.length));
        }
        for (SearchSortResult ele : orderBy) {
            this.orderBy.add(ele);
        }
        return this;
    }
<p>
Order by results in one or more categories.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOrderBy(java.util.Collection)} or {@link #withOrderBy(java.util.Collection)} if you want to override
the existing values.
</p>

@param orderBy
       Order by results in one or more categories.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/model/SearchResourcesRequest.java