function views_handler_field_group_by_numeric::click_sort in Views (for Drupal 7) 6.3
Called to determine what to tell the clicksorter.
Overrides views_handler_field::click_sort
File
- handlers/
views_handler_field_group_by_numeric.inc, line 32
Class
- views_handler_field_group_by_numeric
- Handler for GROUP BY on simple numeric fields.
Code
function click_sort($order) {
$params = array(
'function' => $this->options['group_type'],
);
$this->query
->add_orderby($this->table, $this->field, $order, $this->field_alias, $params);
}