fix problems with sorting

when sorting the events the time was not added right causing a major but