in reply to Sort and push
That being said, using the default (alphbetic) sort (and assuming @datas & amp; @arr are the source & result arrays respectively), you'd use something like...
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.my @arr = sort @datas;
|
|---|