The order is done by value - the start date but filter is done by the end date. That's why the event ordered in the proper order.