An Egypt court has sentenced former President Mohamed Morsi to death for a mass prison break in 2011, prompting immediate condemnations from Amnesty International and the Turkish president.

The court ruled on Saturday that the sentencing of Morsi and 105 others will be referred to the grand mufti, the highest religious authority in Egypt, for confirmation.

Many of those sentenced were tried in absentia.

The court will pronounce its final decision on June 2.

Widespread condemnation

Mohamed Soudan, a senior member of the Muslim Brotherhood, told Al Jazeera the decision was "farcical".

"They're insisting on issuing these verdicts against anyone who participated in the January 25 Revolution ... all of the verdicts fail to meet international standards of law ... they are farcical and will be dismissed as a failing of the coup," said Soudan, who fled Egypt for the UK after Morsi's overthrow.

Turkish President Recep Tayyip Erdogan criticised Egypt over the decision and accused the West of hypocrisy, according to the state-run Anatolian news agency.

"While the West is abolishing the death penalty, they are just watching the continuation of death sentences in Egypt. They don't do anything about it," Erdogan was quoted as saying.

Human rights group Amnesty International said the trial was a "charade" and based on "void procedures".

"Condemning Mohamed Morsi to death after more grossly unfair trials shows a complete disregard for human rights ... he was held for months incommunicado without judicial oversight and that he didn't have a lawyer to represent him," the organisation said in a statement.

The judiciary is doing its part to cement a new political reality in Egypt, one that seeks to silence all dissent and restore the full strength of the authoritarian system that was in place for decades Abdullah al-Arian, Georgetown University, Qatar

Abdullah al-Arian, assistant professor of history at Georgetown University, School of Foreign Service in Qatar, told Al Jazeera the death sentences handed down on Saturday would "come as no surprise to anyone who has been following developments in Egypt over the past two years".

"With these highly politicised trials that contravene all standards of justice, the judiciary is doing its part to cement a new political reality in Egypt, one that seeks to silence all dissent and restore the full strength of the authoritarian system that was in place for decades," Arian said.

Another analyst, Yehia Ghanem, a former managing editor of the Al Ahram newspaper, told Al Jazeera the death sentence was an expected outcome and that the decision of the grand mufti was "not compelling to the judiciary".

Judges killed

Saturday's sentence came as an attack in the Sinai Peninsula left three judges dead and another three wounded.

The group was travelling by car from Ismailiya to El Arish when they were shot at by unidentified gunmen.

Since Morsi's removal by now President Abdel Fattah el-Sisi, a series of attacks have targeted security forces in Sinai, but Saturday's attack was the first against members of the judiciary.

Morsi, who was overthrown by the army in 2013 amid protests against his government, was spared the death sentence in the first of two trials that concluded on Thursday, in which the court advised death sentences for 16 defendants on espionage charges.

They had been charged with colluding with foreign powers, the Palestinian group Hamas and Iran, to destabilise Egypt.

Egyptian authorities have banned Morsi's Muslim Brotherhood since his overthrow and arrested thousands of his supporters.

Last month, an Egypt court sentenced Morsi and 12 other defendants to 20 years in prison for ordering the arrest and torture of protesters in clashes outside the presidential palace in December 2012.

The court acquitted the former president of murder charges that could have seen him face the death penalty.