View Single Post
 
Old 03-01-2017, 07:49 AM
pixazih pixazih is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Feb 2017
Posts: 11
pixazih is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
You would need to calculate the length of each paragraph before sorting. The simplest way to do the would be to add all the paragraphs to a table, insert an empty column in the table, calculate each paragraph's length and write it to the empty cell on that row, sort the table by the column you added, then optionally, delete that column and convert the table back to text.
That's thinking out the box!

Quote:
Originally Posted by gmaxey View Post
Just the sorting part is easy. The trouble is maintaining any direct formatting in the rearranged paragraphs. Crude but this may do.
I expected a short answer on how to overload some class, or something like that.

You did a complete coding of a quicksort algorithm. That's jawbreaking.

You put a lot of work. What an amazing person you are.
Reply With Quote