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

brentheigold has asked for the wisdom of the Perl Monks concerning the following question:

Say for example I had an array that I created by reading in a file, so:
while ( <INPUT_FILE>) { my ($name, $id, $address, $phone) = split(','); push(@outputRef, $name, $id, $address, $phone); }
Then if I wanted to do an ascending sort on the @outputRef array ONLY BY name and phone number, how would I do that? I would really appreciate help on this, if you know how to do this then thanks a lot in advance. Brent.