Assert what the index is sorted by and in which order, as its table says (aria-sort on the heading of the column) or, in another view, as the index announces it ("Blog sorted by Title, Ascending").
Examples
Then the index should be sorted by "Post Date" in "descending" order
Then the index should be sorted by "Entry" in "ascending" order
Then the index should be sorted by "Title" in "ascending" order
And the index should be sorted by "Filename" in "descending" order
Then the index should be sorted by "Expiry Date" in "ascending" order
Pattern
Then(/^the index should be sorted by "([^"]*)" in "(ascending|descending)" order$/, …)
Part of @webship-js/craft-cms-steps (github.com/webship/craft-cms-steps), a step pack for Webship-js 2.0.x.