A data category by which to sort the table in descending or ascending order.



The identifier property of one of the table’s data descriptors. See DataDescriptor.


The data sorting direction.


In a DataTable object, use the sortBy property to sort data already in a table. You can specify which data is to be sorted and the order (ascending or descending). If this property is not defined, data is displayed in the order it is provided in the RecordStore.

This object can be used in DataTable.


{ "components": [ { "role": "datatable", "showDescriptorLabels": true, "sortBy": [ { "descriptor": "id-name", "direction": "descending" } ], "data": { "descriptors": [ { "identifier": "id-name", "key": "name", "label": { "type": "formatted_text", "text": "Name", "textStyle": { "textColor": "black" } }, "dataType": "string" }, { "identifier": "id-occupation", "key": "occupation", "label": "Occupation", "dataType": "string" } ], "records": [ { "name": "Amelia Earhart", "occupation": "Pilot" }, { "name": "Grace Hopper", "occupation": "Computer Scientist" } ] } } ]}

See Also

Tables with JSON Data

Adding a JSON Table

Add a table to your article that displays JSON data in rows and columns.

object DataTable

The component for adding a JSON data table.

object RecordStore

The object that contains JSON data for a data table.

object DataDescriptor

The object for providing the data type, data formatting, and label for a field in a table.

object DataFormat

Properties shared by all data format obejct types.

object FloatDataFormat

The object that allows you to specify the number of digits after the decimal point for numeric values in data table cells.

object ImageDataFormat

The object that allows you to specify the minimum and maximum dimensions for images in data table cells.