diff options
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r-- | scripts/metadata.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 5f28289..e2a7395 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -112,6 +112,11 @@ sub parse_target_metadata($) { packages => [] } ]; + + $target->{sort} and @{$target->{profiles}} = sort { + $a->{priority} <=> $b->{priority} or + $a->{name} cmp $b->{name}; + } @{$target->{profiles}}; } return @target; } |