First try at sorting map