Never mind, I found the answer …
add_filter('ajax_wpqsf_query','title_sorting_fn','',2);
function title_sorting_fn($args, $id){
$args['orderby'] = 'title';
$args['order'] = 'ASC';
return $args;
}
Excellent plugin, BTW. Your hard work is much appreciated!
Not sure if this is relevant to your problem, but this workaround solved a problem for me. I wanted people to search in a single category. But I didn’t want them to have to choose that category in a field. I wanted that category selected by default.
Here’s the workaround:
Add a drop-down field for category, and exclude all the categories except the one you want. Leave the ALL option blank. This way you will have the one category only selected. Build the rest of your search fields. Then use the CSS to hide the category field.
Now your form searches in one cateogry, and it’s automatic. You haven’t been forced to choose it.