In the Proxmox VE web GUI (pve-manager 1.7-11_all), we find that the list of downloadable templates are not in alphabetical order of atleast the package name.
Since it is posssible for more than one package to have the same name and possibly the same version number as well, the serial number of the lsiting is also added for uniqueness of record and the following code changes were incorporated to achieve a semblance of alphabetical order (only for the Section categories):
File: /usr/share/pve-manager/root/apl/download.htm
Lines 85-93:
have been replaced with:
As my perl coding skills are a bit rough - it is certainly not my first 'language' - please polish and include it in the next release of pve-manager.
View attachment PVEManager-AlphabeticalFix.zip
Since it is posssible for more than one package to have the same name and possibly the same version number as well, the serial number of the lsiting is also added for uniqueness of record and the following code changes were incorporated to achieve a semblance of alphabetical order (only for the Section categories):
File: /usr/share/pve-manager/root/apl/download.htm
Lines 85-93:
Code:
foreach my $k (sort keys %{$pkglist->{$sec}}) {
my $d = $pkglist->{$sec}->{$k};
next if $d->{certified};
my $menu = $ddown->out_symbol ('menu0', '', "&aa=$k");
$found = 1;
$table->set_row_link ("?showinfo=$k");
$table->add_row ('', $menu, $d->{headline}, $d->{version}, $d->{type}, $d->{package});
}
Code:
my %myset = ();
foreach my $k (sort keys %{$pkglist->{$sec}}) {
my $d = $pkglist->{$sec}->{$k};
next if $d->{certified};
my $menu = $ddown->out_symbol ('menu0', '', "&aa=$k");
$found = 1;
$d->{k}=$k;
$d->{menu}=$menu;
%myset->{$d->{package} . $d->{version} . $k} = $d;
}
foreach my $key (sort keys %myset) {
$table->set_row_link ("?showinfo=" . %myset->{$key}->{k});
$table->add_row ('', %myset->{$key}->{menu}, %myset->{$key}->{headline}, %myset->{$key}->{version}, %myset->{$key}->{type}, %myset->{$key}->{package});
}
View attachment PVEManager-AlphabeticalFix.zip