rem: [this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { return a.occurrenceStartDate.compare(b.occurrenceStartDate); } when.events.sort(compare); }); 
add: this.periods.forEach(function (p) { p.events = []; }); 
context:     [this.today, this.tomorrow, this.soon].forEach(function(when) {        function compare(a, b) {            return a.occurrenceStartDate.compare(b.occurrenceStartDate);        }        when.events.sort(compare);    });
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/5e0aea19f7957132a55eda68a94217d24a48e141/agenda-tree.js/buggy/calendar/lightning/content/agenda-tree.js