Sort the text blocks

Discussion, questions and support.
Post Reply
User avatar
gbop515
Posts: 6
Joined: Oct 29th, ’19, 04:08

Post by gbop515 » Jul 30th, ’24, 17:31

Hello...

I'd like to sort the text blocks (separated by blank lines) alphabetically by their first line.

For example:

Code: Select all

Text Block One
This is my sentence.

Text Block Two
More sentences are here.

Text Block Three
Google Search Engine
https://www.google.com/

Text Block Four
Here goes the content.

Text Block Five
Related content:
This is related content.
And I'd like to get the sorted output like this:

Code: Select all

Text Block Five
Related content:
This is related content.

Text Block Four
Here goes the content.

Text Block One
This is my sentence.

Text Block Three
Google Search Engine
https://www.google.com/

Text Block Two
More sentences are here.
Could you please guide me to achieve such task using FastKeys?

Thanks much!
User avatar
Marko
Posts: 1787
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jul 31st, ’24, 14:05

Computers can sort such blocks alphabetically or numerically. To sort it by a custom text like this would require more complex script.
Post Reply