ordering by show start time

This commit is contained in:
Naomi 2013-08-29 15:37:33 -04:00
parent ec31fd50c9
commit 8208f8596b
1 changed files with 1 additions and 0 deletions

View File

@ -949,6 +949,7 @@ SQL;
AND ((si1.starts >= :start1::TIMESTAMP AND si1.starts < :end1::TIMESTAMP)
OR (si1.ends > :start2::TIMESTAMP AND si1.ends <= :end2::TIMESTAMP)
OR (si1.starts <= :start3::TIMESTAMP AND si1.ends >= :end3::TIMESTAMP))
ORDER BY si1.starts
SQL;
return Application_Common_Database::prepareAndExecute( $sql,
array(