增加可视化数据的排序方式

This commit is contained in:
wlx 2014-06-18 06:19:54 +00:00
parent 295728d7ff
commit efc508c58c
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ class Visual
{
$sql = "SELECT * FROM {$this->metadataTable} md
LEFT JOIN {$this->mainTable} v ON v.uuid = md.uuid
WHERE v.uuid IS NOT NULL";
WHERE v.uuid IS NOT NULL
order by v.ts_changed desc";
$rs = $this->db->query($sql);
return $rs->fetchAll(\PDO::FETCH_ASSOC);