change map to be ordered