@compare = sort {$element($0) <=> $element($1)} (keys(%hash));