diff --git a/module/Application/src/Application/Controller/IndexController.php b/module/Application/src/Application/Controller/IndexController.php index 6863e189..23dd8147 100644 --- a/module/Application/src/Application/Controller/IndexController.php +++ b/module/Application/src/Application/Controller/IndexController.php @@ -36,8 +36,10 @@ class IndexController extends AbstractActionController $metadata = new \Westdc\Metadata\Outlink; $metadata->opt->limit = 10; + $metadata->opt->order = "md.viewed"; $this->ViewModel->setVariable('metadata',$metadata->fetchAll()); + $metadata->opt->order = "m.ts_created"; $metadata->opt->where = array(" ol.host='http://deep.qherc.org' "); $this->ViewModel->setVariable('qinghaihu',$metadata->fetchAll());