Sort the list by a column, by its heading (ascending, unless descending is asked), and keep the account's list as it was after the scenario.
Examples
When I sort the list by "Title"
When I sort the list by "Title" in descending order
And I sort the list by "Slug"
When I sort the list by "Updated At" in ascending order
When I sort the list by "Name"
Pattern
When(/^I sort the list by "([^"]*)"(?: in (ascending|descending) order)?$/, …)
Part of @webship-js/payload-steps (github.com/webship/payload-steps), a step pack for Webship-js 2.0.x.