sort zookeeper search results to prevent service restarts