nodes: 0, module; 1, function_definition; 2, function_name:top; 3, parameters; 4, block; 5, identifier:self; 6, identifier:sort_by; 7, expression_statement; 8, expression_statement; 9, return_statement; 10, comment:"""Get the best results according to your custom sort method."""; 11, assignment; 12, identifier:sort; 13, identifier:sort; 14, call; 15, identifier:sorted; 16, argument_list; 17, attribute; 18, keyword_argument; 19, identifier:self; 20, identifier:results; 21, identifier:key; 22, identifier:sort_by
code: def top(self, sort_by):
          """Get the best results according to your custom sort method."""
          sort = sorted(self.results, key=sort_by)
          return sort