Sudan won their first match at the African Nations Cup for 42 years on Monday with a 2-1 victory over Burkina Faso which took them to the quarter-finals helped by Angola's blundering defence.
Needing a draw to qualify on a dramatic evening, Angola lost 2-0 to Ivory Coast who had already booked their place in the last eight and who had made nine changes to their starting lineup.
Sudan and Angola both finished Group B on four points but the Sudanese qualified with a level goal difference compared to Angola's minus one. Ivory Coast, favourites to win the title alongside Ghana, finished the group with maximum points without conceding a goal.
Sudan will face Zambia on Saturday.