Sort the dict iterms

In Python 3.3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ
across Python runs.

Partial implement: blueprint py33-support

Change-Id: I739bd9ee1cc10dc01d28efb9a4d2b840bc374d63