allow specification of sorting on search controller