change order field

This commit is contained in:
JianxuanLi 2017-06-20 15:32:14 +08:00
parent 1ddf224f3c
commit bc4a157303
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.id";
$metadata->opt->order = "m.ts_created";
$this->ViewModel->setVariable('metadata_latest',$metadata->fetchAll());
$metadata->opt->order = "md.viewed";