Main content

aria-sort

Characteristics

Type:

  • DOMString

Used in Roles:

  • columnheader
  • rowheader

Value:

  • token
    • ascending: Items are sorted in ascending order by this column.
    • descending: Items are sorted in descending order by this column.
    • none (default): There is no defined sort applied to the column.
    • other: A sort algorithm other than ascending or descending has been applied.

Indicates if items in a table or grid are sorted in ascending or descending order.

Authors should only apply this property to table headers or grid headers. If the property is not provided, there is no defined sort order. For each table or grid, authors should apply aria-sort to only one header at a time.

Syntax

<element aria-sort="ascending|descending|none|other" ... /> 

Microsoft Active Accessibility Properties:

  • N/A

UI Automation Properties: 

  • N/A

UI Automation AriaProperties Property:

  • sort
More in this category: « aria-setsize aria-valuemax »