rem: return( eventA.displayDate - eventB.displayDate ); 
add: var eventADisplayDate = new Date( eventA.displayDate ); var eventBDisplayDate = new Date( eventB.displayDate );  if( eventADisplayDate.getFullYear() == eventBDisplayDate.getFullYear() && eventADisplayDate.getMonth() == eventBDisplayDate.getMonth() && eventADisplayDate.getDay() == eventBDisplayDate.getDay() && eventADisplayDate.getHours() == eventBDisplayDate.getHours() && eventADisplayDate.getMinutes() == eventBDisplayDate.getMinutes() ) { if ( eventA.title < eventB.title ) return -1; if ( eventA.title > eventB.title ) return 1; return 0; }  return( eventA.displayDate - eventB.displayDate ); 
context: CalendarEventDataSource.prototype.orderEventsByDisplayDate = function calEvent_orderEventsByDisplayDate( eventA, eventB ){    return( eventA.displayDate - eventB.displayDate );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/007d2ff004d559e285d75e667599ac54f631113c/calendarEvent.js/clean/calendar/resources/content/calendarEvent.js