There are two priorities for scheduling.
If an event with the same scheduling time is already present on the queue, the new event is appended to the older.
If an event with the same scheduling time is already present on the queue, the new event is inserted before others.