nodes: 0, module; 1, function_definition; 2, function_name:sort_entries; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, return_statement; 8, comment:"""Get whether reverse is True or False. Return the sorted data."""; 9, call; 10, identifier:sorted; 11, argument_list; 12, attribute; 13, keyword_argument; 14, keyword_argument; 15, identifier:self; 16, identifier:data; 17, identifier:key; 18, attribute; 19, identifier:reverse; 20, call; 21, identifier:self; 22, identifier:sort_func; 23, attribute; 24, argument_list; 25, identifier:self; 26, identifier:get_reverse
code: def sort_entries(self):
          """Get whether reverse is True or False. Return the sorted data."""
          return sorted(self.data, key=self.sort_func, reverse=self.get_reverse())