--- title: "Sorting" url: "https://help.maxon.net/c4d/en-us/Content/html/OMOGRAPH_FRACTUREVORONOI-ID_FRACTURE_SORTTAB.html" section_path: "MoGraph > Generators > Voronoi Fracture > Sorting" element_id: "OMOGRAPH_FRACTUREVORONOI" group_id: "ID_FRACTURE_SORTTAB" description: "Several EffectorsFields (e.g., Step, Spline, Formula Effectors, Step Field) and the MoGraph Color shader take the fragment order into consideration. The …" --- ## Sorting ![Image: 040340.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/040340.jpg)\ The simplest role the **Sorting** function can play is when the Step Effector (which scales in this case) is used. At left without **Sorting**, at right **Result Sorted by Y**. Several EffectorsFields (e.g., Step, Spline, Formula Effectors, Step Field) and the MoGraph **Color** shader take the fragment order into consideration. The Spline Effector, for example, arranges fragments in a row along the spline. Internally, all fragments are numbered (the clone numbering can be made visible using the [Display](https://help.maxon.net/c4d/en-us/Content/html/OMOGRAPH_CLONER-ID_MG_TRANSFORM_GROUPTRANSFORM.html.md) Index function in the clone-generating object's **Transformation** menu). According to which criteria should the numbering take place? This can be defined here. ### Sort Result Parameter ID: `ID_FRACTURE_ACTIVATE_SORTORDER` Enables or disables the Sorting function. ### Invert Sort Parameter ID: `ID_FRACTURE_INVERT_SORTORDER` Inverts the Sorting feature. ### Sort Result by Parameter ID: `ID_FRACTURE_SORTORDER` ### Direction Parameter ID: `ID_FRACTURE_SORTORDER_USER_VECTOR` · Range: [XYZ ] If this option is enabled, sorting will take place according to positions in space (the Voronoi Fracture coordinate system). Sorting will take place along the selected axis. The **User** or option or a specific axis can be used to define how sorting should take place. ### Distance to Object Parameter ID: `ID_FRACTURE_SORT_OBJECTDISTANCE` ![Image: 040952.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/040952.jpg)\ A Step Effector scales according to the distance from a Null object or spline. Note how the numbering is higher the closer it lies and lower the farther away it lies. The numbering along the axis is not sufficient for several special effects. The **Distance to Object** setting can be used to generate numbering depending on the distance from the objects. This works in conjunction with Null objects, splines and objects that generate polygons or are made up of polygons. The more distant a fragment is, the smaller the index value will be. The distance between fragment and object is ascertained directly for Null objects, for splines via their next progression and for polygonal objects from the next surface. ![Image: 040953.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/040953.jpg)\ Here a Text spline is used. [![Image: halvar.png](https://help.maxon.net/c4d/en-us/Content/Resources/Images/halvar.png)](https://help.maxon.net/c4d/en-us/Content/Resources/Scenes/041280.c4d) ### Along Spline Parameter ID: `ID_FRACTURE_SORT_SPLINESTEP` If this option is enabled, numbering will be created along the spline's progression if a spline is used in the **Distance to Object** setting. At some point, each fragment lies a minimal distance from the spline. This position along the spline is a key factor for numbering.