webui: Fix sorting of IP addresses on "Show node" page

We were trying to sort but keeping a hash, which doesn't really work.

Also, put unmanaged interfaces last.
Merge pull request #620 from vuntz/ipaddress-sort

webui: Fix sorting of IP addresses on "Show node" page