Most definitely possible. It sounds like homework though. Have you tried writing any code?
A successful approach is going to collect/match/parse the data into blocks of chapter + its text in an array, or an array of hashes, and then use the chapter in a sort block. You can search here or online for multi-line matching and sorting. If you show some code, you'll most definitely get help with improving it.
In reply to Re: Sort text by Chapter names
by Your Mother
in thread Sort text by Chapter names
by Bman70
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |