Vendor page - past contract sorting fixes. 

Closes issue #241