Refactor sort field processing for multi include queries
Refactor sort field processing for multi include queries

We need to be able to add sort fields for collections that are not includes (arbitrary joins). This includes adding the sort field to the select-field list if required, so insertion of the field list needs to happen after sorting has been processed

silktide/reposition-sql,downsider/reposition-sql