Sort the keys before printing them