Multivalue map sorting