From 9ebce086172735bf2cd97a5374aeafa18f9bca77 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Mon, 8 Apr 2013 22:49:34 +1000 Subject: [PATCH] Quick fix for the attachments index --- app/controllers/attachments_controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/attachments_controller.php b/app/controllers/attachments_controller.php index 8f445a9c..a766d43e 100644 --- a/app/controllers/attachments_controller.php +++ b/app/controllers/attachments_controller.php @@ -8,8 +8,10 @@ class AttachmentsController extends AppController { var $paginate = array( 'limit' => 5000, - 'order' => 'principle_id asc', - + 'order' => array( + array('Attachment.principle_id' => 'asc'), + array('Attachment.name' => 'asc') + ) );