in reply to Re: hash map to give preference to 1st match
in thread hash map to give preference to 1st match

For this type of sort, rather than building up a code string and eval()ing, you might want to use Sort::MultipleFields.