Hello Perlgurus! I have made a small program that creates some instances of a classobject and puts them into an array. I want to sort this array in order of a specific value in the class.
I was thinking of something like this but it doesn't work @sortarr = sort byvalue (@unsortedobjectarray) sub byvalue { $refa = $unsortedobjectarray[$a]; $refb = $unsortedobjektarray[$b]; $refa->{Classvalue} <=> $refb->{Classvalue} } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]