The bankruptcies I am familiar with, the assets affected by the bankruptcy, not all are, were sold thru the courts and then the courts decide how much each creditor gets, most pennies on the dollar owed.
If the assets were good enough to cover debtors, there would not be need of bankruptcy, those would have been sold already for sufficient to pay everyone in full.
Not all creditors have equal standing, some come first.