sort project also if pe has only end_date. tests.