in reply to sorting a file by a date:"YYYY-MM-DD" field with cmp

Pull out only the date lines using grep.

@events = sort sortByDate grep { /date:/ } @events;
Dum Spiro Spero