I’m no expert, but a bit of googling tells us.
The laws around bankruptcy define the priority of who gets paid and in what order:
- Secured Claims
- Unsecured Priority Claims
- Unsecured Non-Priority Claims (General Unsecured)
- Equity Security Interests
Each layer has to be paid in full before the next layer.
Unsecured Priority Claims - this includes customers who have paid for services.