Skip to content

Commit

Permalink
Sort items in DHCP_IFACES
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Nov 22, 2016
1 parent 4dfe24e commit bf00404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/network/services/dns.rb
Expand Up @@ -449,7 +449,7 @@ def InitDhcpIfaces(_key)
none_label = "none"
items = [Item(Id(none_label), _(none_label), hostname_ifaces.empty?)]

items += LanItems.find_dhcp_ifaces.map do |iface|
items += LanItems.find_dhcp_ifaces.sort.map do |iface|
selected = hostname_ifaces.first == iface
Item(Id(iface), iface, selected)
end
Expand Down

0 comments on commit bf00404

Please sign in to comment.