sorting master node array while consistent hashing