rem: eventArray.sort( this.orderRawEventsByDate ); 
add: this.currentEvents.sort( this.orderRawEventsByDate ); 
context: CalendarEventDataSource.prototype.getEventsForRange = function calEvent_getEventsForRange( StartDate, EndDate ){   dump( "\n->get events from "+StartDate+"\n"+EndDate );   var eventList = this.gICalLib.getFirstEventsForRange( StartDate, EndDate );      var eventArray = new Array();      while( eventList.hasMoreElements() )   {      var tmpevent = eventList.getNext().QueryInterface(Components.interfaces.oeIICalEvent);      dump( "\n->event is "+tmpevent );      eventArray[ eventArray.length ] = tmpevent;   }   eventArray.sort( this.orderRawEventsByDate );   return eventArray;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b94e5a082c63475c343bf6529fcc40597a88b4bc/calendarEvent.js/buggy/calendar/resources/content/calendarEvent.js