Currently the function for retrieving device_groups returns rows in the order
in which they were created. This causes the WebUI to display is a semi-random
order. This patch causes the devices to be sorted by name which makes the
group lists easier to navigate.