Print dicts in alphabetical order

Instead of iterating over dicts, print them in alphabetical order.

Change-Id: I630c28ea36266037b1ab4098831f4f960e6c5dc5
Closes-Bug: #1239511