Network Devices in Host view are unsorted
A web-based front-end to VirtualBox written in PHP
Brought to you by:
imoore76
Hi,
its a small design "bug": the network devices in host view are unsorted. Thats annoying if you have a lot of host interfaces (like virtual ones or vlan-interfaces, etc ...)
adding a few lines in js/phpvirtualbox.js will fix that "issue":
{{{
d['networkInterfaces'].sort(
function(a,b) {
if(a['name'] == b['name']) return 0;
return (a['name'] < b['name']) ? -1 : 1;
}
);
}}}
before
{{{
for(var i = 0; i < d['networkInterfaces'].length; i++) {
/* Interface Name */
netRows[netRows.length] = {
}}}
damn it, I f***ed up the markup
before
More of a feature request, but it will be added in the next relase.
Added / fixed in 4.3-2