Sorts the products by one of the store's sort options, named as the page shows it ("Featured", "Best selling", "Alphabetically, A-Z", "Price, low to high", "Price, high to low", "Date, new to old", ...): a drop-down list, a list of choices or a menu, whichever the theme draws. Waits until the address carries the sort (sort_by) and the list has been loaded again.
Examples
When I sort the products by "Price, low to high"
When I sort the products by "Alphabetically, Z-A"
And I sort the products by "Best selling"
When we sort the products by "Date, new to old"
When sort the products by "Price, high to low"
Pattern
When(/^(?:I |we )?sort the products by "([^"]*)"$/, …)
Part of @webship-js/shopify-steps (github.com/webship/shopify-steps), a step pack for Webship-js 2.0.x.