sort interfaces in legacy_config_get_interfaces, https://forum.opnsense.org/index.php?topic=3514

This commit is contained in:
Ad Schellevis 2016-08-10 20:48:54 +02:00
parent 738f733d1d
commit 48769e27ae

View File

@ -75,5 +75,8 @@ function legacy_config_get_interfaces($filters = array())
}
}
}
uasort($interfaces, function($a, $b) {
return strnatcmp($a['descr'], $b['descr']);
});
return $interfaces;
}