diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 35b748bf..dad04b03 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -80,7 +80,7 @@ class IndexController extends Zend_Controller_Action $this->view->list_news = $rows; - $sql="select * from $this->submd where uuid in (select uuid from datavisual) limit 5 order by ts_created"; + $sql="select * from $this->submd where uuid in (select uuid from datavisual) order by ts_created desc limit 5"; $sth=$this->db->query($sql); $this->view->visualdata = $sth->fetchAll(PDO::FETCH_BOTH); }