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:
parent
dd595a2ad3
commit
660f84b22f
|
@ -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'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue