(1) to creditors, including partners who are creditors, to the extent permitted by law, in satisfaction of liabilities of the limited partnership other than liabilities for distributions to partners under section 441 or 444 of this chapter;
(2) except as provided in the partnership agreement, to partners and former partners in satisfaction of liabilities for distributions under section 441 or 444 of this chapter; and
(3) except as provided in the partnership agreement, to partners first for the return of their contributions and secondly respecting their partnership interests, in the proportions in which the partners share in distributions.