http://www.perlmonks.org?node_id=1048944


in reply to Re^2: Custom Sort Array
in thread Custom Sort Array

You changed the requirements but I think you see where is the solution going: extract relevant fields and compare that.