sortEvents(events);
for (WeekViewEvent event : events) {
cacheEvent(event);
}
}
<BUG>private void sortEvents(List<WeekViewEvent> events) {
</BUG>
Collections.sort(events, new Comparator<WeekViewEvent>() {
@Override
public int compare(WeekViewEvent event1, WeekViewEvent event2) {

sortEvents(events);
for (WeekViewEvent event : events) {
cacheEvent(event);
}
}
private void sortEvents(List<? extends WeekViewEvent> events) {
Collections.sort(events, new Comparator<WeekViewEvent>() {
@Override
public int compare(WeekViewEvent event1, WeekViewEvent event2) {
