my @sorted_rows = sort { $b->{SCORE} <=> $a->{SCORE} } @output;