[B] Fixed how sorting works for events/occurrences now.