Distributions of cash or other assets of a limited partnership shall be allocated among the partners, and among classes of partners, in the manner provided in the partnership agreement. Unless otherwise provided in the partnership agreement, distributions shall be made on the basis of the sharing of profits and losses.