in reply to Sort undef
If have many of them you can also push @$ResultsFinal, shift @$ResultsFinal until $$ResultsFinal[0];
PS or in the case undef has to be discarded you can @$ResultsFinal = ( sort { ... } grep {defined} @$ResultsFinal );
L*