parameters: (self, links)
return_statement: return no_eggs + eggs
docstring: Returns elements of links in order, non-egg links first, egg links
          second, while eliminating duplicates
docstring_summary: Returns elements of links in order, non-egg links first, egg links
          second, while eliminating duplicates
docstring_tokens: Returns elements of links in order non - egg links first egg links second while eliminating duplicates
function: def _sort_links(self, links):
          # type: (Iterable[Link]) -> List[Link]
          """
          Returns elements of links in order, non-egg links first, egg links
          second, while eliminating duplicates
          """
          eggs, no_eggs = [], []
          seen = set()  # type: Set[Link]
          for link in links:
              if link not in seen:
                  seen.add(link)
                  if link.egg_fragment:
                      eggs.append(link)
                  else:
                      no_eggs.append(link)
          return no_eggs + eggs
function_tokens: def _sort_links ( self , links ) : # type: (Iterable[Link]) -> List[Link] eggs , no_eggs = [ ] , [ ] seen = set ( ) # type: Set[Link] for link in links : if link not in seen : seen . add ( link ) if link . egg_fragment : eggs . append ( link ) else : no_eggs . append ( link ) return no_eggs + eggs