Quote:
Originally Posted by macropod
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
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.