Hi,

you already gave me a hint, when i tried to resort a 2 dimensional spread.

Now i have a *variable* amount of objects. Each object consits of five points. Each point has x/y/z-coordinates. All these coordinates of all points of all objects are stored in a spread.

**The sorting is like this.**

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Object 1 Point 1 x-coordinate

Object 1 Point 1 y-coordinate

Object 1 Point 1 z-coordinate

Object 2 Point 1 x-coordinate

Object 2 Point 1 y-coordinate

Object 2 Point 1 z-coordinate

… 1st points of all objects

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Object 1 Point 2 x-coordinate

Object 1 Point 2 y-coordinate

Object 1 Point 2 z-coordinate

Object 2 Point 2 x-coordinate

Object 2 Point 2 y-coordinate

Object 2 Point 2 z-coordinate

… 2nd points of all objects

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Object 1 Point 3 x-coordinate

Object 1 Point 3 y-coordinate

Object 1 Point 3 z-coordinate

Object 2 Point 3 x-coordinate

Object 2 Point 3 y-coordinate

Object 2 Point 3 z-coordinate

… 3rd points of all objects

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

… points 4+5 of all objects

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

**I want to reorder it in the folliwing way:**

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Object 1 Point 1 x-coordinate

Object 1 Point 1 y-coordinate

Object 1 Point 1 z-coordinate

Object 1 Point 2 x-coordinate

Object 1 Point 2 y-coordinate

Object 1 Point 2 z-coordinate

Object 1 Point 3 x-coordinate

Object 1 Point 3 y-coordinate

Object 1 Point 3 z-coordinate

… points 4+5 of 1st object

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Object 2 Point 1 x-coordinate

Object 2 Point 1 y-coordinate

Object 2 Point 1 z-coordinate

Object 2 Point 2 x-coordinate

Object 2 Point 2 y-coordinate

Object 2 Point 2 z-coordinate

Object 2 Point 3 x-coordinate

Object 2 Point 3 y-coordinate

Object 2 Point 3 z-coordinate

… points 4+5 of 2nd object

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

… 3rd object’s points

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

… the other object’s points

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

THANKS,

Johannes