-CC-2192: Schedule sent to pypo is not sorted by start time.

This commit is contained in:
martin 2011-04-15 12:26:59 -04:00
parent e853a6ff6e
commit e48f044e56
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ class ScheduleGroup {
." LEFT JOIN $CC_CONFIG[showInstances] as si"
." ON st.instance_id = si.id"
." WHERE st.group_id=$this->groupId"
." AND st.starts < si.ends";
." AND st.starts < si.ends"
." ORDER BY st.starts";
return $CC_DBC->GetAll($sql);
}