Fix broken code that assumes dict keys are in sorted order
Merge pull request #13 from ekimekim/master

Fix broken code that assumes dict keys are in sorted order