The last parameter of sylius_resource_sort is an array.