content sorting enhances

prepend sorting of contents by `ref_no`
@matthewford done