rem: eventArray.sort( this.orderRawEventsByDate ); 
add: this.currentEvents.sort( this.orderRawEventsByDate ); 
context: CalendarEventDataSource.prototype.getAllFutureEvents = function calEvent_getAllFutureEvents(){   var Today = new Date();   //do this to allow all day events to show up all day long   var Start = new Date( Today.getFullYear(), Today.getMonth(), Today.getDate(), 0, 0, 0 );      var Infinity = new Date( Today.getFullYear()+100, 31, 11 );   var eventList = this.gICalLib.getFirstEventsForRange( Start, Infinity );      var eventArray = new Array();      while( eventList.hasMoreElements() )   {      var tmpevent = eventList.getNext().QueryInterface(Components.interfaces.oeIICalEvent);            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