add fair sorting of replicas in round_robin and prefer_slave