Commit 4fca79be authored by Jessica Severin's avatar Jessica Severin
Browse files

in main::encode_hash added sort to keys so encoded hash string will be the same

if the hash keys/values are the same.
parent 7d8d8816
......@@ -303,7 +303,7 @@ sub main::encode_hash
return "" unless($hash_ref);
my $hash_string = "{";
my @keys = keys %{$hash_ref};
my @keys = sort(keys %{$hash_ref});
foreach my $key (@keys) {
$hash_string .= "'$key'=>'" . $hash_ref->{$key} . "',";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment