

(Note added by barlop- a note for the reader regarding this step, we will not be sorting according to these line numbers, we're sorting according to the length of the lines. I'll use the following as example data: Lorem The idea in this answer is to add spaces and line numbers so that _092dog will be sorted above _003alligator. _X (pretending the underscores are really spaces) will similarly come alphabetically before _XX. "The Zoo" comes alphabetically before "Their House" because the space is treated as a character and comes before "i". This tool can be hijacked to sort by the length of the lines by placing spaces on the left of each line, and making sure that all the lines are the same length. Notepad++ has a built-in TextFX tool that sorts selected lines alphabetically. Updated to maintain original sort order, if that is important. This answer is inspired by a YouTube video.
