Skip to content

Commit

Permalink
sort interfaces in legacy_config_get_interfaces, https://forum.opnsen…
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Aug 10, 2016
1 parent 738f733 commit 48769e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/etc/inc/config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,8 @@ function legacy_config_get_interfaces($filters = array())
}
}
}
uasort($interfaces, function($a, $b) {
return strnatcmp($a['descr'], $b['descr']);
});
return $interfaces;
}

0 comments on commit 48769e2

Please sign in to comment.