00001 <?php
00007 class views_handler_sort_group_by_numeric extends views_handler_sort {
00008 function init(&$view, &$options) {
00009 parent::init($view, $options);
00010
00011
00012 $this->handler = views_get_handler($options['table'], $options['field'], 'sort');
00013 $this->handler->init($view, $options);
00014 }
00015
00019 function query() {
00020 $this->ensure_my_table();
00021
00022 $params = array(
00023 'function' => $this->options['group_type'],
00024 );
00025
00026 $this->query->add_orderby($this->table_alias, $this->real_field, $this->options['order'], NULL, $params);
00027 }
00028
00029 function ui_name($short = FALSE) {
00030 return $this->get_field(parent::ui_name($short));
00031 }
00032 }