function similarterms_handler_sort_similar::query in Similar By Terms 7.2
Same name and namespace in other branches
- 6.2 views/similarterms_handler_sort_similar.inc \similarterms_handler_sort_similar::query()
Called to add the sort to a query.
Overrides views_handler_sort::query
File
- views/
similarterms_handler_sort_similar.inc, line 16
Class
- similarterms_handler_sort_similar
- Handler which sorts the by the similarity.
Code
function query() {
$this
->ensure_my_table();
$this->query
->add_orderby($this->table_alias, 'nid', $this->options['order'], NULL, array(
'function' => 'count',
));
}