Page 1 of 1

Sort by line length

Posted: Fri Aug 11, 2006 10:29 pm
by davidpowell
Are there any plans to modify the sort feature to allow sorting by line length? If not, I'd like to suggest it, as I would use it a lot. I can't figure out any way to do that in the current version of TextPad.

Posted: Sat Aug 12, 2006 2:17 am
by Bob Hansen
Try these steps

1. Select All
2. Edit Align Right
3. Tools Sort Ascending
4. Edit Align Left

By golly, it (almost) works!

Posted: Sat Aug 12, 2006 1:57 pm
by davidpowell
Thanks - hadn't thought of changing the alignment. That works great, as long as the maximum line length is 150 characters or less. It seems to want to use 150 for the right margin, no matter what I set the right margin value to. Is that a bug?

Never mind the "almost"

Posted: Sat Aug 12, 2006 2:02 pm
by davidpowell
Never mind about the "almost" part, didn't have the box checked beside where it says "Word break at column number:". :oops: I guess it must use 150 for the default when that box is not checked. Now it works perfectly! Thanks, I've been needing this for a long time! :D