add sort and add to query
add support host:port