Currently, not all symbols are in labeled alphabetic order. That's because they are using the hash table key, which doesn't necessarely are identical to the label displayed for each symbol/file. Add labels to file as well and use labels instead of key names to sort them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx> --- scripts/get_abi.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index de1c0354b50c..2311d4e3f3ef 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -108,6 +108,7 @@ sub parse_abi { $data{$nametag}->{filepath} = $file; $data{$nametag}->{is_file} = 1; $data{$nametag}->{line_no} = 1; + $data{$nametag}->{label} = "abi_file_$fn"; my $type = $file; $type =~ s,.*/(.*)/.*,$1,; @@ -320,7 +321,7 @@ sub output_rest { foreach my $what (sort { ($data{$a}->{type} eq "File") cmp ($data{$b}->{type} eq "File") || - $a cmp $b + $data{$a}->{label} cmp $data{$b}->{label} } keys %data) { my $type = $data{$what}->{type}; -- 2.47.1