Kan. Stat. Ann. § 58-2305
A mortgage given by a purchaser to secure the payment of purchase money shall have preference over a prior judgment against such purchaser.
G.S. 1868, ch. 68, § 4; October 31; R.S. 1923, 67-305.