Flow help.

I’ve built a flow that populates next interaction based on any event created for an account. However if two upcoming events are created then it chooses the farthest date of the two. Any help on having it move to the closest date then once the event passes move to the next event?

Thank you.