What determines the order that my creditors are paid?

Creditors are paid in an order determined by bankruptcy law. Secured creditors are paid first and in the order determined by the court. The assets of your business are liquidated and the bankruptcy trustee will distribute them.