修改排序方法
This commit is contained in:
parent
4c6e4d5a91
commit
a2a86129cc
|
@ -16,7 +16,7 @@ class Doi extends Zend_Controller_Plugin_Abstract
|
|||
{
|
||||
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{
|
||||
$sql = "SELECT doi.* FROM ".$this->tbl_doi." doi
|
||||
LEFT JOIN mdauthor a ON doi.uuid=a.uuid
|
||||
|
|
Loading…
Reference in New Issue