Skip to main content

Sort data in a CSV

Sort data in a CSV given specific sort criteria.

Application

  • CSV

Inputs (what you have)

NameDescriptionData TypeRequired?Example
CSV fileCSV file to sortFileYesdata.csv
Sort criteriaColumn name and sort order written as ColumnName SortOrder. SortOrder can be ASC or DESC. Note sort order favours special characters first then number then regular characters. Separate each column with a commaText(Long)YesName ASC
Contains headers?If the CSV contains headers that should be ignored in the sortTrue/FalseNo
Output filenameOptional custom filename for the sorted CSV fileText(Long)Nosample.csv

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Sorted CSV fileSorted CSV fileFileYesdata.csv

Outcomes

NameDescription
SuccessThis status is selected if the CSV file was successfully sorted.
Impossible to CompleteThis status is selected in the event of the following scenarios:Unable to interact with the provided CSV

Requirements

  • N/A