Fixes #18 - sort map by key