I would like to sort all lines in a file based on where the text of the line starts, after a line index which is printed into the file, like this:
126. This is the start of the line.
It was written with the function printf(%d.\t)
.
A sort function to sort lines with capital letters and not ending in a period I use is :sort /^[A-Z].*[^\.]/ r
.
How can I adapt this sort function to ignore the number prefix at the beginning of each line? :sort /^\d*\.\t[A-Z].*[^\.]/ r
should sort each line according to its number, rather than ignoring the number, so I think will need syntax for ignoring or skipping.