Skip to content

Commit 8ec1090

Browse files
committed
Sort any kind of hash
1 parent 3b5137c commit 8ec1090

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

functions/sort_hash.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function jira::sort_hash(Hash[String, Any] $input) {
1+
function jira::sort_hash(Hash $input) {
22
# Puppet hashes are "insertion order", so this works to sort by key
33
Hash(sort(Array($input)))
44
}

0 commit comments

Comments
 (0)