Assert that the list is sorted by a column, in an order: the heading says so (aria-sort), and the cells of the page on screen follow it.
Examples
Then the list should be sorted by "Price" in ascending order
Then the list should be sorted by "Price" in descending order
And the list should be sorted by "Name" in ascending order
Then the list should be sorted by "Order date" in descending order
And the list should be sorted by "Title" in ascending order
Pattern
Then(/^the list should be sorted by "([^"]*)" in (ascending|descending) order$/, …)
Part of @webship-js/filament-steps (github.com/webship/filament-steps), a step pack for Webship-js 2.0.x.