# Class: SortElement

## tibco.objectapi.ec.base.SortElement

#### new SortElement()

Definition of a specific SortElement (used to build up the SortOrder on a query). Constructs a new SortElement.

The following features are supported:

- `Attribute`
- `Type`

### Members

#### attribute :string

Name of the attribute to sort on. This property holds the value of the 'Attribute' attribute.

##### Type:

- string

#### type :tibco.objectapi.ec.base.SortType

Type (direction) the sort should take. This property holds the value of the 'Type' attribute.

##### Type:

- tibco.objectapi.ec.base.SortType