How to Sort CSV File Data in Notepad++ based on a Column


CSV Lint is the plugin that you must get on your Notepad++ text editor if you work with CSV files a lot.

CSV Lint for Notepad++

This plugin can help you to sort your data by any column in ascending or descending order unlike the default sorting options that just let you sort based on the data per line.


Example: Sort Data based on Col2

    Data:

    Col1,Col2,Col3
    1,2000,10
    2,2409,14
    3,3405,30

    You go to Plugins > CSV Lint > CSV Lint Window

    Next, you click on Detect Columns followed by Sort where you can select your column and choose Ascending/Descending options.

    Sort Data in Notepad++

    Result after Sorting:

    Col1,Col2,Col3
    3,3405,30
    2,2409,14
    1,2000,10

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap