Sort the list on screen by a column, as a person does: its heading. With an order, the step clicks the heading until the list says it is sorted that way (the site remembers the last order of a list for the session); without one, it clicks once.
Examples
When I sort the list by "Points" in descending order
When we sort the list by "Name" in ascending order
And I sort the list by "Email"
When I sort the list by "ID" in ascending order
When I sort the list by "Points" in ascending order
Pattern
When(/^(?:I|we) sort the list by "([^"]*)"(?: in (ascending|descending) order)?$/, …)
Part of @webship-js/mautic-steps (github.com/webship/mautic-steps), a step pack for Webship-js 2.0.x.