sort maps (keys and values)