ticket:368 fixed sort_by filtering