added sort support to searches