function log_handler_field_timestamp::click_sort in Log entity 7
Called to determine what to tell the click sorter.
Overrides views_handler_field::click_sort
File
- includes/
views/ handlers/ log_handler_field_timestamp.inc, line 16 - Contains the log timestamp field handler.
Class
- log_handler_field_timestamp
- Field handler for log timestamps.
Code
function click_sort($order) {
// First apply the parent click sort.
parent::click_sort($order);
// Always order by log ID in addition to timestamp. Use the same condition
// in parent::click_sort().
if (isset($this->field_alias)) {
$this->query
->add_orderby($this->table_alias, 'id', $order);
}
}