![]() ![]() with the correct number of digits in your line numbers. Use the following Regular Expression Find/Replace ( Ctrl+ H) to match the right-hand characters equalling or exceeding the length of your longest data line. If your shortest line has 4 characters, and your longest 44, then make sure you insert at least 40 spaces. Insert enough spaces so that the shortest line of data will be padded out to the length of the longest line of data. Then in the Edit menu select Column Editor. Place the text cursor (the vertical line) into the very first position of the file. Reverse all lines first if you want to sort longest to shortest. Note that this will retain the original ordering when sorting from shortest string to longest string. Choose “Number to Insert” and start with 1, increase by 1, and include leading zeros. But the reason for adding the line numbers, is so we know the natural order, so that when for example, two+ lines are of equal length we can sort those lines according to that natural order)Īssuming your text file only has the data in it, place the text cursor (the vertical line) into the very first position of the file. (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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |