diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 4d01e2bd..a049f84f 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -548,7 +548,7 @@ class DataController extends Zend_Controller_Action $row=$db->fetchRow($sql); if ($row) $this->view->doc=$row['linkage']; //相关用户 - $sql="select p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,p.individual"; + $sql="select p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,r.id"; $this->view->authors=$db->fetchAll($sql,array($uuid)); //相关元数据,根据同名关键词实现 //$sql="select distinct(md.uuid),md.title from keyword kw left join metadata md on kw.id=md.id where kw.keyword in (select k.keyword from keyword k left join metadata m on k.id=m.id where m.id=? and k.keytype='theme') and kw.id<>? limit 10";