TED]
Subject: Sorting an Array with classobjects
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
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