#75559Provide Helpers to prepare SQL Fragments
Description
A few helper methods are needed to build syntactically valid SQL queries from legacy data where the format of the input is not strict enough to reliably use directly in queries.
These helpers need to mostly deal with TCA information and Hook results for default_sortby, sortby, and maybe foreign_table_where fragments