function views_handler_sort_group_by_numeric::query

Called to add the sort to a query.

Overrides views_handler_sort::query

File

handlers/views_handler_sort_group_by_numeric.inc, line 29

Class

views_handler_sort_group_by_numeric
Handler for GROUP BY on simple numeric fields.

Code

public function query() {
  $this->ensure_my_table();
  $params = array(
    'function' => $this->options['group_type'],
  );
  $this->query
    ->add_orderby($this->table_alias, $this->real_field, $this->options['order'], NULL, $params);
}