When I sort the list by "Date published"

Sort the change list by a column, with the column's heading as a person does: a first click sorts ascending, a second descending.

Examples

When I sort the list by "Date published"
When I sort the list by "Date published" in descending order
And we sort the list by "Question text" in ascending order
When I sort the list by "Username"
And I sort the list by "Category" in descending order

Pattern

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

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