修改排序方法

This commit is contained in:
wlx 2013-05-02 14:49:23 +00:00
parent 4c6e4d5a91
commit a2a86129cc
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Doi extends Zend_Controller_Plugin_Abstract
{ {
if(empty($uid)) if(empty($uid))
{ {
$sql = "SELECT * FROM ".$this->tbl_doi." ORDER BY id DESC"; $sql = "SELECT * FROM ".$this->tbl_doi." ORDER BY ts_published desc,ts_submitted desc,ts_created DESC";
}else{ }else{
$sql = "SELECT doi.* FROM ".$this->tbl_doi." doi $sql = "SELECT doi.* FROM ".$this->tbl_doi." doi
LEFT JOIN mdauthor a ON doi.uuid=a.uuid LEFT JOIN mdauthor a ON doi.uuid=a.uuid