Rename plainkeys->pretty, and add sortarrays.