fixed event ordering by datetime
closes #21