Sorts an input document file by the existing keys then
consecutively renumbers document file keys while moving
the original key to the first column of the doc file.
Original registers of the the document file are also
moved over one column. Useful for making selection file
from a non-continuous key listing.