Here I have 1094 rhombus, I would like to sort them into a tree with clear structure, like same row (same Z coordinate )in one branch. do you know how?
Your diamonds are not perfectly aligned in the z directions, off by decimals. Probably a floating point error but really depends on how you made them. So I just rounded the numbers to remove the decimal points. In this case it worked because your rows have a good distance between them in the z direction.