VectorShift home page
Search...
⌘K
Ask AI
Support
Platform
Platform
Search...
Navigation
File Operations
Sort CSV Node
Documentation
API Reference
Book a Demo
Blog
Tutorials
Get Started
Introduction
Quickstart
Pipeline Mechanics
Platform
Pipelines
Overview
Start
General
Large Language Models (LLMs)
Knowledge
Data Loaders
Multi-Modal
Logic
Data Transformation
Text Operations
JSON Operations
List Operations
File Operations
Text to File Node
File to Text Node
Append Files Node
CSV Reader Node
CSV Writer Node
CSV to Excel Node
Sort CSV Node
Rename File Node
AI Operations
Notifications
Data Enirchment
Chat
Conversational
Knowledge
Interfaces
Transformations
Files
Account
Profile
Organizations
Subscriptions
On this page
Node Inputs
Node Parameters
Node Outputs
Example
File Operations
Sort CSV Node
Sort a CSV file
This node allows you to sort a CSV file.
Node Inputs
File to sort: The CSV you want to sort
Type:
File
For providing the file you have two options:
If toggle is on Upload: Upload a file by clicking the upload button
If toggle is on Variable: Reference files from other nodes.
Node Parameters
On the face of the node:
Has Headers: Turn on if the CSV has headers
Reverse Sort: Turn on if you want to sort in descending order. The sorting is done in ascending order by default.
If CSV has headers:
Column to sort by: Select the column you want to sort the CSV by.
If CSV has no headers:
Column Index: The index of the column to sort by (the first column is 0)
Node Outputs
Output: The sorted CSV
Type:
File
Example usage:
{{sort_csv_0.output}}
Example
The below example shows a pipeline that takes in a CSV file and sorts it.
File Node: Loads the CSV file
File:
File.csv
file created in the
CSV Writer Example
Sort CSV Node: Sorts the CSV file (reverse sort based on first column)
File to sort:
{{file_0.file}}
Reverse Sort:
True
Column Index:
0
Output Node: Displays the sorted CSV file
Output:
{{sort_csv_0.output}}
Initial CSV File
Sorted CSV File
CSV to Excel Node
Rename File Node
Assistant
Responses are generated using AI and may contain mistakes.