Skip to main content
Version: 1.x

Function: getSortOrder()

getSortOrder(page, tableId, columnIndex): Promise<SortOrderInfo | null>

Returns the current sort state of a table column.

Parameters​

page​

TableFilterSortPage

Playwright Page (or compatible subset).

tableId​

string

The UI5 control ID.

columnIndex​

number

Zero-based column index.

Returns​

Promise<SortOrderInfo | null>

Sort info, or null if the column is not sorted.

Capability​

ui5.table.getSortOrder

Intent​

Read the current sort direction and column for a UI5 table column.

Example​

const sort = await getSortOrder(page, 'myTable', 0);