public SortOption add(String attribute, Direction direction) {
        sortedAttributes.add(new SortedAttribute(attribute, direction));
        return this;
    }
public SortOption add ( String attribute , Direction direction ) { sortedAttributes . add ( new SortedAttribute ( attribute , direction ) ) ; return this ; }
Adds the specified attribute to the list of sorted attributes with the specified direction.

@param attribute the attribute to sort.
@param direction the direction this attribute will be sorted with.
@return the sort option itself.