services_dnsmasq.php: Deleting a Host Override entry removes the wrong item
On Services > DNS Forwarder, when there are multiple Host Override entries the wrong item can be deleted from the list.
It may be related to how the items are sorted before display or before deleting. On a test VM here, hovering over the delete icon shows the IDs are not in order as if the list was sorted, for example:
Clicking the delete icon for entry "ccccc" actually removes "bbbbb".
The id numbers reflect the actual order of the entries in config.xml, which is unsorted.
Backported for bug #8159 so sort by index before deleting to delete the correct one