Altered map-vals to preserve sorted maps which fixes #11.