Sort zookeeper servers to avoid redundant restarts