Fixed sort before filter on tasks#index