class SortProductsBySku (View source)

Methods

Collection
execute(Collection $products, string $direction = 'asc')

Execute the action.

Details

Collection execute(Collection $products, string $direction = 'asc')

Execute the action.

Parameters

Collection $products
string $direction

Return Value

Collection