From 669ab2035f3d178ba8fc40cd721584bcf95557fa Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 4 Nov 2019 16:41:48 +0100 Subject: [PATCH] NotificationHistory: Add sort rules --- library/Eagle/Model/NotificationHistory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Eagle/Model/NotificationHistory.php b/library/Eagle/Model/NotificationHistory.php index 6b44d644..6318a569 100644 --- a/library/Eagle/Model/NotificationHistory.php +++ b/library/Eagle/Model/NotificationHistory.php @@ -38,6 +38,11 @@ class NotificationHistory extends Model ]; } + public function getSortRules() + { + return ['event_time DESC']; + } + public function createBehaviors(Behaviors $behaviors) { $behaviors->add(new Timestamp([