I have been documenting our database platform for nearly 9 years. We use structured headers for stored procedures and views (including summary, parameters, blocks, remarks and about a dozen others),...
I was thinking that if your order numbers are sequential, which ours are, you could sort by order number and avoide the problem of sorting on the converted data column....