aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index 5f28289037..e2a739533c 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;
}