SORT POINTS

Sorts the points of a curve by their Y-axis values in ascending or descending order. Use this worker to reorder an irregular or unsorted curve before further processing or comparison operations.

When to use

Classification: process.

Tagged: ascending, curve, descending, points, reorder, sort, y-axis.

Inputs

Label ID Type Default Required Description
Choose Axis order scalar asc   Sort direction for Y values: ‘asc’ (ascending, default) or ‘desc’ (descending). Leave at default ‘asc’ unless a descending sort order is explicitly required.
Curve curve vector   Input curve (X/Y vector) whose points will be sorted by Y value. Must be a valid curve vector; leave unconnected only if the curve is supplied via the pipeline context.

Outputs

Label ID Type Description
curve_hg_sort_output_1 curve_hg_sort_output_1 vector Output curve with the same X/Y points as the input, reordered so that Y values are sorted in the chosen direction (ascending or descending).

Disciplines

  • data.curve.transform

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_hg_sort


Auto-generated from transformation schema. Worker id: curve_hg_sort. Schema hash: 2750224477df. Hand-curated docs in workerexamples/ override this page when present.