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

Dear monks

I am using the following to order my data structure (@$ResultsFinal) according to one specific array element ($OptOrderToDisplayTable)

@$ResultsFinal = ( sort { deaccent($a->[($OptOrderToDisplayTable)]) cm +p deaccent($b->[($OptOrderToDisplayTable)])} @$ResultsFinal );

This works fine exept for the following undesired behaviour: if one element is "undef" the Perl sorting mechanism puts it at the beginning of my ordered data structure. What I am trying to achive is to put it at the end. Any suggestions?

(Sorry, no complete working example above, but I think it is clear what I am trying to achive)