I do not get your point, in that Sharia is the origin of all western law.
Before that, law was arbitrary and based on whatever an autocratic monarch decreed.
Sharia was the first significant attempt at the rule of law, blind justice, etc.
It put judges over tyrants.
{...
A “mufti” is an Islamic jurisconsult used by Muslim-majority Egypt as part of its legal system, which is
based on Islamic law, or
sharia. Egypt’s constitution states that “Islam is the religion of the state … and the principles of Islamic sharia are the main sources of legislation.”
...}