function apachesolr_views_query::set_solrsort in Apache Solr Views 6
set the solrsort. This currently doesn't work
Parameters
string $field: the field to sort on
string $direction: the direction in which to sort (ASC/DESC)
File
- ./
apachesolr_views_query.inc, line 742
Class
- apachesolr_views_query
- Class for handling a view that gets its data not from the database, but from a Solr server.
Code
function set_solrsort($field, $direction) {
$this
->add_sort($field, $direction);
}