以时间进行排序

This commit is contained in:
wlx 2010-07-06 16:56:40 +00:00
parent 7b6833fbfd
commit 49a1a8055c
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class Admin_DataController extends Zend_Controller_Action
$select=$this->db->select();
$select->from('comments')
->joinLeft('metadata','metadata.uuid=comments.uuid','title')
->order('comments.uuid desc')
->order('comments.ts_created desc')
->order('comments.id desc');
$paginator = Zend_Paginator::factory($select);
$paginator->setCurrentPageNumber($this->_getParam('page'));