The property of a decedent, except as provided in K.S.A. 59-401 and 59-403, shall be liable for the payment of the decedent's debts and other lawful demands against the estate. When a will designates the property to be appropriated for the payment of debts or other items, it shall be applied to such purpose. Unless the will provides otherwise for the payment thereof, or unless the court shall otherwise determine pursuant to K.S.A. 59-1410 the property of the testator, subject to the payment of debts and other items, shall be applied to that purpose in the following order:
Demonstrative legacies shall be classed as specific legacies to the extent of the payment thereof from the fund or property out of which payment is to be made, and as general legacies upon failure or insufficiency of the fund or property out of which payment was to be made to the extent of such insufficiency. The property of each class shall be exhausted before resorting to that of the next class; and all of one class shall contribute ratably if all the property of that class is not required for the payment of such debts or other items.
K.S.A. 59-1405