Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

709.Text sort -- How to sort each line of text by the order of reversed line?

User: editor -- 2011-01-29          << 708  710 >>
Hits: 350
Type: Text sort   
Search all Text sort examples
Description:
How to sort each line of text by the order of reversed line?
For example:
in general 010 should come before 900 if compare from left to right.
but 900 should come before 010 if compare from right to left(reversed).
Input Sample:
010
110
210
700
800
900
Output Sample:
700
800
900
010
110
210
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' window
set 'replace with pattern' to:

3. click 'replace', done!

Screenshot 1:  Replace_Window


Similar Examples:
How to sort the lines in a text files by the order of line length? (70%)
How to sort all the lines of a text file by order the multiple columns? (63%)
How to sort the numbers in each line by the descending order in a text file? (62%)
How to sort all the lines of a text file randomly? (61%)
How to convert each line of a text file to the new format? (59%)
How to sort all lines of text by specified keyword? (59%)
How to delete all lines whose first word appeared in previous line? (58%)
How to sort a list of email addresses by the order of the domain name? (57%)

Check Demo of Text sort
Keywords:
compare  reverse  comp  before  order  text sort  example  examp  right  sort  text replace reversed  line compare  text compare  before each line  replace before line  line before  text left  line order