added sorting of events in logbook