@@ -25,4 +25,5 @@ from tlive t1
inner join tagents t2 on t1.siteid = t2.siteid and t1.tagentsid = t2.tagentsid
where t1.siteid = $siteid$
and t1.tagentsid IN $tagentsidList$
+ORDER BY livestatus DESC