nodes: 0, module; 1, function_definition; 2, function_name:sorted_releases; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, return_statement; 10, comment:"""
          Releases sorted by version.
          """; 11, assignment; 12, call; 13, list_comprehension; 14, identifier:releases; 15, list_comprehension; 16, attribute; 17, argument_list; 18, subscript; 19, for_in_clause; 20, tuple; 21, for_in_clause; 22, identifier:releases; 23, identifier:sort; 24, keyword_argument; 25, identifier:release; 26, integer:1; 27, identifier:release; 28, identifier:releases; 29, call; 30, identifier:release; 31, identifier:release; 32, attribute; 33, identifier:reverse; 34, True; 35, identifier:parse_version; 36, argument_list; 37, identifier:self; 38, identifier:releases; 39, attribute; 40, identifier:release; 41, identifier:version
code: def sorted_releases(self):
          """
          Releases sorted by version.
          """
          releases = [(parse_version(release.version), release)
                      for release in self.releases]
          releases.sort(reverse=True)
          return [release[1] for release in releases]