Animation nodes - sorted group transformation

Let's say i have a 5x5x5 group of cubes, my goal is to have them all sorted from top to bottom, scaling down to a set size one by one with about a frame of delay between each cube, after scaling they then move to a set location with the same order and delay

I attempted to create this effect using animation nodes by running a group list (containing the objects) through two "sort list" nodes, sorting by x location and z location. Creating the scaling effect was successful using a loop subprogram, but once I attempted to have the objects translate from point A (the original positions of the individual objects) to point B (set location to converge on) it seems as though their changing location interfered with the initial sorting nodes and causes them to move very irregularly, even continuing to move when I pause the timeline.

Any help with correcting my method or another method of achieving this affect would be greatly appreciated. I am new to using animation nodes and my knowledge of it is very limited, but I'm excited to hear what you have to say and to learn more about it. If any of my explanation needs clarification im happy to answer any questions

• why are you not use object instancer? Are your cubes different? – Crantisz Jan 19 '18 at 10:35

And paste this data path in sort list, after "e"