DATASET SORT COLUMN NAMES¶
Reorders the columns of a dataset alphabetically or by a regex-extracted key, in ascending or descending order. Use this worker when column ordering matters for downstream processing, reporting, or visual consistency.
When to use¶
Classification: process.
Tagged: column_order, columns, dataset, regex, reorder, sort, transform.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Choose Dataset | dataset_1 | dataset | — | Input dataset whose columns will be reordered; accepts any tabular dataset available in the workflow. | |
| Choose Columns | choose_column | text | — | One or more column names to anchor or prioritize during sorting; selected from the columns present in dataset_1 — leave empty to sort all columns. | |
| Regex | regex | text | — | Optional regular expression used to extract a sort key from column names (e.g., _d+ extracts the trailing integer after an underscore); leave blank to sort by the full column name. | |
| Choose Order | order_type | select | desc | Sort direction for the reordered columns: ‘asc’ for ascending (A→Z / 0→9) or ‘desc’ for descending (Z→A / 9→0); defaults to ‘desc’. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Dataset sorted | dataset_sort_column_names_output | dataset | A copy of the input dataset with its columns rearranged according to the specified sort key, regex, and order. |
Disciplines¶
- data.dataset.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=dataset_sort_column_names
Auto-generated from transformation schema. Worker id: dataset_sort_column_names. Schema hash: e843ab5c4c98. Hand-curated docs in workerexamples/ override this page when present.