print "££".$unsorted[0]->function."
"; @sorted = sort {$unsorted[$a]->function <=> $unsorted[$b]->function} @unsorted;