change order field

This commit is contained in:
JianxuanLi 2017-06-20 15:24:26 +08:00
parent aea9844891
commit 1ddf224f3c
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class IndexController extends AbstractActionController
$metadata = new \Westdc\Metadata\Outlink;
$metadata->opt->limit = 10;
$metadata->opt->sort = "desc";
$metadata->opt->order = "m.ts_created";
$metadata->opt->order = "m.id";
$this->ViewModel->setVariable('metadata_latest',$metadata->fetchAll());
$metadata->opt->order = "md.viewed";