Page 1 of 1

reverse selected lines

Posted: Thu May 23, 2002 2:52 pm
by Kevin
I need to reverse the order of selected lines. Any suggestions?

Thanks.

Re: reverse selected lines

Posted: Thu May 23, 2002 6:12 pm
by Ed
Replace all (reg exp)
^
with
\i\t

Sort (F9) First key From:1, Length:10, Descending, Numeric

Replace all (reg exp)
^[[:digit:]]+\t
with

(blank)

voila

could be made a macro I guess

Re: reverse selected lines

Posted: Tue Aug 03, 2010 8:59 pm
by OppfinnarJocke
Ed wrote:Replace all (reg exp)
^
with
\i\t

Sort (F9) First key From:1, Length:10, Descending, Numeric

Replace all (reg exp)
^[[:digit:]]+\t
with

(blank)

voila

could be made a macro I guess
So frigging clever!
Thanks a lot, it really helped.