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.