Sort keys when printing map literals

this makes the test deterministic, now that small map iteration order is
randomized.