sort { $data_hash{$a} <=> $data_hash{$b} } keys(%data_hash) #### sort { $a <=> $b } keys(%reordered_data_hash)