task index sort by next eventtime