Bankruptcy Law Questions? Ask a Bankruptcy Lawyer.
A Bankruptcy on one's credit report is considered to be the worst thing that can be there. The fact that there is a Bankruptcy will overshadow a subsequent foreclosure or deed-in-lieu.
However, if there were no Bankruptcy on one's credit report, it would not make a difference to a new mortgage company if one had a foreclosure or a deed-in-lieu of foreclosure, as both signify not having paid the mortgage, as it is not possible to do a deed-in-lieu if one is current with the mortgage payments.