Commit 48769e27 authored by Ad Schellevis's avatar Ad Schellevis

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

parent 738f733d
......@@ -75,5 +75,8 @@ function legacy_config_get_interfaces($filters = array())
}
}
}
uasort($interfaces, function($a, $b) {
return strnatcmp($a['descr'], $b['descr']);
});
return $interfaces;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment