nodes: 0, module; 1, function_definition; 2, function_name:tags; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, comment:#		q = q.filter_by(state='active'); 11, expression_statement; 12, expression_statement; 13, return_statement; 14, string; 15, assignment; 16, assignment; 17, assignment; 18, assignment; 19, assignment; 20, identifier:tags; 21, string_content:Return a list of all tags that have this semantic tag, sorted by name.
  
  		:rtype: list of ckan.model.tag.Tag objects; 22, identifier:q; 23, call; 24, identifier:q; 25, call; 26, identifier:q; 27, call; 28, identifier:q; 29, call; 30, identifier:tags; 31, call; 32, attribute; 33, argument_list; 34, attribute; 35, argument_list; 36, attribute; 37, argument_list; 38, attribute; 39, argument_list; 40, attribute; 41, argument_list; 42, attribute; 43, identifier:query; 44, attribute; 45, identifier:q; 46, identifier:join; 47, identifier:TagSemanticTag; 48, identifier:q; 49, identifier:filter_by; 50, keyword_argument; 51, identifier:q; 52, identifier:order_by; 53, attribute; 54, identifier:q; 55, identifier:all; 56, identifier:meta; 57, identifier:Session; 58, identifier:_tag; 59, identifier:Tag; 60, identifier:tag_id; 61, attribute; 62, attribute; 63, identifier:name; 64, identifier:self; 65, identifier:id; 66, identifier:_tag; 67, identifier:Tag
code: def tags(self):
  		'''Return a list of all tags that have this semantic tag, sorted by name.
  
  		:rtype: list of ckan.model.tag.Tag objects
  
  		'''
  		q = meta.Session.query(_tag.Tag)
  		q = q.join(TagSemanticTag)
  		q = q.filter_by(tag_id=self.id)
  #		q = q.filter_by(state='active')
  		q = q.order_by(_tag.Tag.name)
  		tags = q.all()
  		return tags