Added sorting map output