mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
sort interfaces in legacy_config_get_interfaces, https://forum.opnsense.org/index.php?topic=3514
This commit is contained in:
parent
738f733d1d
commit
48769e27ae
@ -75,5 +75,8 @@ function legacy_config_get_interfaces($filters = array())
|
||||
}
|
||||
}
|
||||
}
|
||||
uasort($interfaces, function($a, $b) {
|
||||
return strnatcmp($a['descr'], $b['descr']);
|
||||
});
|
||||
return $interfaces;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user