Implements sortable table headers for resource relations columns.