Upon the winding up of a limited partnership, the assets shall be distributed as follows:
(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 thirty-one or thirty-four of this article;