Have a look on here: https://www.stepchange.org/debt-info/bereavement-and-debt.aspx
According to that page funerals and admin costs are paid first from an estate. Unsecured creditors are paid if there is anything left although I know from experience that many unsecured creditors will write the...