CatalogTool: support sorting on a related key

This is achieved by injecting the sort parameters in left_join_list