From de1c3f6788d85f0ac89682f3add208da76ddc550 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Sat, 31 May 2014 20:07:48 +0000 Subject: [PATCH] sort by id instead of created, their order is the same anyway --- Model/Audit.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Model/Audit.php b/Model/Audit.php index d6a8fd9..e87559c 100644 --- a/Model/Audit.php +++ b/Model/Audit.php @@ -10,13 +10,17 @@ class Audit extends Model { ] ]; - public $actsAs = ['Containable']; + public $actsAs = [ + 'Containable' + ]; + + public $order = [ + 'Audit.id' => 'desc' + ]; public $recursive = -1; public function setupSearchPlugin() { - $this->order = 'Audit.created DESC'; - $this->filterArgs = [ 'event' => ['type' => 'value'], 'model' => ['type' => 'value'],