fix search criteria sort