对待审数据进行按时间排序

This commit is contained in:
wlx 2013-04-25 02:59:28 +00:00
parent 207b469eb7
commit 6697d74024
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class Admin_ReviewController extends Zend_Controller_Action
$sql = "select m.*,md.title,u.username,u.realname from mdstatus m
right join metadata md on md.uuid=m.uuid
left join users u on u.id=m.userid
where m.status=1";
where m.status=1 order by m.ts_created desc";
$re = $this->db->query($sql);
$rows = $re->fetchAll();