fixing sort and sort_dir in the advanced query syntax