Then the list should be sorted by "Date published" in ascending order

Assert the order the change list is sorted in by a column, as the column's heading shows it.

Examples

Then the list should be sorted by "Date published" in ascending order
Then the list should be sorted by "Date published" in descending order
And the list should be sorted by "Question text" in ascending order
Then the list should be sorted by "Username" in descending order
And the list should be sorted by "Category" in ascending order

Pattern

Then(/^the list should be sorted 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.