system: natsort() is better for opt9, opt10 reorder issue

This commit is contained in:
Franco Fichtner 2022-08-24 20:57:45 +02:00
parent dee270a851
commit 859669e1e7

View File

@ -803,7 +803,7 @@ function get_primary_interface_from_list($iflist = null)
}
/* we pull the primary entry from a "priority" list: lan, optX or wan */
sort($iflist);
natsort($iflist);
foreach ($iflist as $if) {
if (preg_match('/^(lan|opt[0-9]+|wan)$/', $if)) {