Might be interesting to note that the Somali courts united as a network (officially after 2000 or so) and became a real legal system that could have been the basis for a stable government, until the CIA destroyed the network for excluding its favorite warlords.
https://en.wikipedia.org/wiki/Islamic_Courts_Union