When I sort the "Employees" table by "Name"

Sort a table by a column, ascending or descending (ascending without a word): its header clicked until its aria-sort says so.

Examples

When I sort the "Employees" table by "Name"
And we sort the table by "Age" descending
When I sort the "Employees" table by "Age" ascending
And I sort the "Employees" table by "Name" descending
When we sort the table by "Users"

Pattern

When(/^(?:I |we )?sort the (?:"([^"]*)" )?table by "([^"]*)"(?: (ascending|descending))?$/, …)

Part of @webship-js/material-ui-steps (github.com/webship/material-ui-steps), a step pack for Webship-js 2.0.x.