Wrong.
That is an unconstitutional order to incriminate yourself.
The only means for a Court to lawfully make such an order would be if the Prosecutor gave the phone's owner immunity. Which obviously means that the order is useless regardless of what is found on the phone since there could be no prosecution based on the evidence found on the phone.
What's worse is that in civil case you don't even have a fifth amendment right to begin with. If a creditor is looking for your assets and can get you into court, the judge can order you to disclose all you accounts and throw you in jail until you do.