DataView\EventHistory: default sort by timestamp

It doesn't make much sense to sort history by "hostname" hardcoded to
service-only host columns. Default is now timestamp DESC, internally
this is mapped to raw_timestamp.
This commit is contained in:
Thomas Gelf 2014-06-17 12:51:13 +00:00
parent dd595a2ad3
commit 660f84b22f
1 changed files with 2 additions and 4 deletions

View File

@ -63,11 +63,9 @@ class EventHistory extends DataView
public function getSortRules()
{
return array(
'raw_timestamp' => array(
'order' => self::SORT_DESC
),
'timestamp' => array(
'order' => self::SORT_DESC
'columns' => array('raw_timestamp'),
'order' => 'DESC'
)
);
}