Following a bloody civil war, South Sudan declared independence from Sudan after a referendum, an independence which is widely recognised but which was followed by another civil war.
Somalia has been described as a failed state for a while, marred by ongoing civil wars. The breakaway republic of Somaliland is relatively peaceful, but its independence is not recognised by the international community.
Why is it that the international community cooperates with South Sudanese independence, but does not wish to acknowledge the same for Somaliland?
One could also consider internationally controversial breakaway republics in the comparison, such as Kosovo.