Le Chatelier's principle
Although potassium is more electropositive than sodium, KCl can be reduced to the metal by reaction with metallic sodium at 850 °C because the more volatile potassium can be removed by distillation (see Le Chatelier's principle):