修改默认排序方式

This commit is contained in:
wlx 2013-05-02 05:21:20 +00:00
parent ef199cb5dc
commit 061e38d26a
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class Doi extends Zend_Controller_Plugin_Abstract
$sql = "SELECT doi.* FROM ".$this->tbl_doi." doi
LEFT JOIN mdauthor a ON doi.uuid=a.uuid
WHERE a.userid=".$uid." AND a.status>0
ORDER BY id DESC
ORDER BY ts_published desc,ts_submitted desc,ts_created DESC
";
}
$rs = $this->db->query($sql);