The shariah justice system is the best in the world and one of the reason's why Islam has flourished so well there. It is by no means perfect, but a pious society only works when the rules are enforced.
That's what the Islamic Courts Union were doing in Somalia after the government collapsed into anarchy, and they were reasonably effective at stamping out lawlessness, but they were taken down by Ethiopia and the US and the vacuum was replaced by the Shebab, who are far, far worse.