refining recurring events logic, sorting