code: private void sortAndCacheEvents(List<? extends WeekViewEvent> events) {
          sortEvents(events);
          for (WeekViewEvent event : events) {
              cacheEvent(event);
          }
      }
docs: Sort and cache events.
  @param events The events to be sorted and cached.