Sort lines ascending
-
Hi,
How can I sort lines ascending with 2 conditions:
Example (text original):
0004;0000020
0001;0000012
0003;0000101
0001:0000008Want (result):
0001;000008
0001;000012
0003;000101
0004;000020Thanks for your help.
-
Umm… the result you want is what you get when you sort lexicographically ascending.
-
@Jose-Emilio-Osorio said in Sort lines ascending:
How can I sort lines ascending with 2 conditions:
Did you try your example with the Notepad++ sorting functions. It does work, however there may be instances where it doesn’t achieve the desired result. That’s because the Notepad++ sort function just sorts the characters reading across each line. There is no ability to template the different fields in each line to consider a “tiered” approach to sorting.
Terry
-
@Jose-Emilio-Osorio The (many!) sort commands are located under (menu) Edit -> Line operations.