Page 1 of 1
Sorting document by lines
Posted: Sun Jul 31, 2011 11:58 pm
by Marsianin
Is there an easy way to sort document (or selection) by lines separated with Enter (#10#13) ?
Posted: Mon Aug 01, 2011 1:47 pm
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.
Posted: Mon Aug 01, 2011 7:23 pm
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.