def _format_links_fields(self, links):
fields = list()<EOL>for link in links:<EOL><INDENT>linked_model = link['<STR_LIT>'](super_context)<EOL>null = self._marker_true if link['<STR_LIT:null>'] is True else self._marker_false<EOL>field_name = link['<STR_LIT>'] or link['<STR_LIT>']<EOL>fields.append((self._field_prefix, field_name, '<STR_LIT>' % linked_model.title, null))<EOL><DEDENT>fields.sort(key=lambda f: f[<NUM_LIT:1>])<EOL>return fields<EOL>
Format the fields containing links into 4-tuples printable by _print_fields().