sort hash <ip> in template. for idempotency. (hash was sorted randomly)

IP attributes were randomly sorted.