raw/ace/assets/js/uncompressed/fullcalendar.js
function compareDaySegments(a, b) {
	return (b.rightCol - b.leftCol) - (a.rightCol - a.leftCol) || // put wider events first
		b.event.allDay - a.event.allDay || // if tie, put all-day events first (booleans cast to 0/1)
		a.event.start - b.event.start || // if a tie, sort by event start date
		(a.event.title || '').localeCompare(b.event.title) // if a tie, sort by event title
}
function compareDaySegments(a, b) {
	return (b.rightCol - b.leftCol) - (a.rightCol - a.leftCol) || // put wider events first
		b.event.allDay - a.event.allDay || // if tie, put all-day events first (booleans cast to 0/1)
		a.event.start - b.event.start || // if a tie, sort by event start date
		(a.event.title || '').localeCompare(b.event.title) // if a tie, sort by event title
}
function compareDaySegments ( a , b ) { return ( b . rightCol - b . leftCol ) - ( a . rightCol - a . leftCol ) || // put wider events first b . event . allDay - a . event . allDay || // if tie, put all-day events first (booleans cast to 0/1) a . event . start - b . event . start || // if a tie, sort by event start date ( a . event . title || '' ) . localeCompare ( b . event . title ) // if a tie, sort by event title }
A cmp function for determining which segments should appear higher up
A cmp function for determining which segments should appear higher up