You are here

public function views_handler_sort::query in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_sort.inc \views_handler_sort::query()
  2. 6.2 handlers/views_handler_sort.inc \views_handler_sort::query()

Called to add the sort to a query.

10 methods override views_handler_sort::query()
views_handler_sort_broken::query in handlers/views_handler_sort.inc
Called to add the sort to a query.
views_handler_sort_comment_thread::query in modules/comment/views_handler_sort_comment_thread.inc
Called to add the sort to a query.
views_handler_sort_date::query in handlers/views_handler_sort_date.inc
Called to add the sort to a query.
views_handler_sort_group_by_numeric::query in handlers/views_handler_sort_group_by_numeric.inc
Called to add the sort to a query.
views_handler_sort_menu_hierarchy::query in handlers/views_handler_sort_menu_hierarchy.inc
Called to add the sort to a query.

... See full list

File

handlers/views_handler_sort.inc, line 31
Definition of views_handler_sort.

Class

views_handler_sort
Base sort handler that has no options and performs a simple sort.

Code

public function query() {
  $this
    ->ensure_my_table();

  // Add the field.
  $this->query
    ->add_orderby($this->table_alias, $this->real_field, $this->options['order']);
}