Use const map instead of non-const in voice sort