public ComponentDataConfiguration withSort(SortProperty... sort) {
        if (this.sort == null) {
            setSort(new java.util.ArrayList<SortProperty>(sort.length));
        }
        for (SortProperty ele : sort) {
            this.sort.add(ele);
        }
        return this;
    }
<p>
Describes how to sort the component's properties.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSort(java.util.Collection)} or {@link #withSort(java.util.Collection)} if you want to override the
existing values.
</p>

@param sort
       Describes how to sort the component's properties.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplifyuibuilder/src/main/java/com/amazonaws/services/amplifyuibuilder/model/ComponentDataConfiguration.java