Automatic numbering tags

Hi, I’m trying to do a routine for automatic label numbering of hydraulic equipment without revit, without which a numbering followed an order in the space (x, y, z), that numbered from right to left in ascending order, select automatic numbering But I’m having trouble with the order, can anyone give me a hand?

OBS: sorry for any spelling mistakes, because I used the translator.

You need to sort these by location before re numbering.

Element.Location node is a start. Then, assuming they are point based, you can get the X value from the point and sort the elements by that value using a sort by key node.

Thanks for the tip