public ListAppsRequest withSortBy(AppSortKey sortBy) {
        this.sortBy = sortBy.toString();
        return this;
    }
<p>
The parameter by which to sort the results. The default is CreationTime.
</p>

@param sortBy
       The parameter by which to sort the results. The default is CreationTime.
@return Returns a reference to this object so that method calls can be chained together.
@see AppSortKey
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListAppsRequest.java