Text Sort

Text_generator  Text_merge 

Text Sort by word

Example:

Sort all line of text by the second word

Text sort

Replace procedures:

1. ctrl-o open source txt/csv file

2. ctrl-h open 'replace' window

1) Replace Unit=Chars

2) Search for pattern=.*

3) Replace with pattern=sort_by_word($match,2)

4. click 'replace', done!

Text Sort by date

Example:

Sort csv file by the date column B

Text sort

Replace Procedures:

1. ctrl-o open source txt/csv file

2. ctrl-h open 'replace' window

* set 'replace with pattern' to:

sort_by_word($match,2,2,'date')

3. click 'settings' tab, set 'input delimiter' and 'output delimiter' to 'other', and enter a single comma behind.(note: if text is seperated by space, just set input/output delimiter to 'space')

4. click 'replace', done!

5. if there are multiple files, click 'batch...' and drag multiple files to 'batch runner' window, and click 'batch replace' button.

Text Sort by self defined function

Example:

Sort text by the length of line

Text sort

Replace Procedures:

1. ctrl-o open source txt/csv file

2. ctrl-h open 'replace' window

* set 'replace with pattern' to:

sort_by_func($match,'length')

3. click 'replace', done!

Notes:

For batch replace files, please refer to Replace Pioneer help manual.


Other Examples of "Text sort"
How to sort file by the number which first appear in each line?
How to sort a list of email subject, ignoring the prefix of RE: or FW:?
How to sort the numbers in each line by the descending order in a text file?
How to sort a list of email addresses by the order of the domain name?
How to batch sort csv files by the order of value in the specified column?
How to sort all the lines by the order of date with format day-month-year?
How to sort the text by the number of specific word in each line?
How to sort all words in alphabetic order for each line in CSV file?

Search all "Text sort" examples