in reply to Sort and push

As targetsmart says, you should define the nature of the sort you require.

That being said, using the default (alphbetic) sort (and assuming @datas & amp; @arr are the source & result arrays respectively), you'd use something like...

my @arr = sort @datas;
BTW, you do realise that, within the loop in your snippet, you modify the fifth element of @data and then only use the first 2 elements of said array - by pushing a concatenation of them onto the result array.

A user level that continues to overstate my experience :-))