@Nicola-Vento said in Original String Order:
Alternatively, is there a way to know the string ordering of the original file so that I can put it in the edited file?
There is one thing you could do, although that means adding text to the file whilst editing it. You could add the original line number to each line, then move that to the end of each line. Then when ordering it alphabetically the number would not interfere with the new ordering. Once editing is complete you could move that number back to the start of the line, re-order based on the number and then remove the number.
This is achieved through the “Column Editor” function. You would have the cursor in the very first position of the file, use the Column editor to add a number, starting at 1, adding 1, no repeat and have the “leading zeros” ticked. Then use a regex (regular expression) to move that number to the end of each line. Continue with your editing.
Lastly move the number back to the start of each line using another regex, order by number and then a final regex to remove the number.
Terry