Sorting document by lines

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Sorting document by lines

Post by Marsianin »

Is there an easy way to sort document (or selection) by lines separated with Enter (#10#13) ?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, no. You need to save each paragraph as RVF and text in a list, then sort this list and insert RVF in the proper order.

PS: RichViewActions includes TableSort unit containing procedures for sorting tables.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

Hm, yes I can put every line to StringList and sort it but I will lose formatting.

Yes I know about TableSort but it works in ANSI mode (as noted there)? My docs are Unicode.
Post Reply