An Egyptian court ordered the release of former Prime Minister Ahmed Nazif on Thursday, because of a limit on pretrial detention in a corruption case for which he had been held since the revolution that toppled Hosni Mubarak. The court accepted an appeal lodged by Nazif, who was prime minister from 2004 until Mubarak replaced him during the uprising in January 2011. He still faces trial for corruption. It was not clear when Nazif, the highest profile Mubarak-era official to be freed in recent months, would leave prison.