prt-auf: sort the output when listing differences

This commit is contained in:
John McQuah 2022-11-24 14:43:17 -05:00
parent f9268f2073
commit 3d4523d126
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ sub port_diff { # returns a scalar indicating how many differences were found
if ($dtype !~ /^(current|isinst|utd)/) {
printf "$format", "Port", "Installed", "In Repository" if (! $dtype);
foreach my $p (keys %V_INST) {
foreach my $p (sort(keys %V_INST)) {
next if (($osearch{filter}) and ($p !~ /$osearch{filter}/));
next if ((grep /$p/, @LOCKED) and ($odepends{all}==0));
$lastcol = ($V_REPO{$p}) ? $V_REPO{$p} : "MISSING!";