nodes: 0, module; 1, function_definition; 2, function_name:__draw_cmp; 3, parameters; 4, block; 5, identifier:self; 6, identifier:obj1; 7, identifier:obj2; 8, expression_statement; 9, if_statement; 10, comment:"""Defines how our drawable objects should be sorted"""; 11, comparison_operator:obj1.draw_order > obj2.draw_order; 12, block; 13, elif_clause; 14, else_clause; 15, attribute; 16, attribute; 17, return_statement; 18, comparison_operator:obj1.draw_order < obj2.draw_order; 19, block; 20, block; 21, identifier:obj1; 22, identifier:draw_order; 23, identifier:obj2; 24, identifier:draw_order; 25, integer:1; 26, attribute; 27, attribute; 28, return_statement; 29, return_statement; 30, identifier:obj1; 31, identifier:draw_order; 32, identifier:obj2; 33, identifier:draw_order; 34, unary_operator; 35, integer:0; 36, integer:1
code: def __draw_cmp(self, obj1, obj2):
          """Defines how our drawable objects should be sorted"""
          if obj1.draw_order > obj2.draw_order:
              return 1
          elif obj1.draw_order < obj2.draw_order:
              return -1
          else:
              return 0