Don't rely on a stable dictionary sort
Merge pull request #197 from dstufft/dont-rely-stable-dict

Don't rely on a stable dictionary sort