From 6d0f161cf4d2dff02afe08b3b4efd337d96f5486 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Mon, 20 Jul 2009 04:02:12 +0000 Subject: [PATCH] MINOR: Added sorting argument to callback function --- code/BlogTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlogTree.php b/code/BlogTree.php index 96d1d62..ef63809 100644 --- a/code/BlogTree.php +++ b/code/BlogTree.php @@ -203,7 +203,7 @@ class BlogTree extends Page { } // By specifying a callback, you can alter the SQL, or sort on something other than date. - if ($retrieveCallback) return call_user_func($retrieveCallback, 'BlogEntry', $where, $limit); + if ($retrieveCallback) return call_user_func($retrieveCallback, 'BlogEntry', $where, $limit, $order); else return DataObject::get('BlogEntry', $where, $order, '', $limit); } }