Expose sort functionality to search function