finalize tree reordering (alphabetic order first, ip addr order using ip2long server side routine)