code: def __draw_cmp(self, obj1, obj2):
          if obj1.draw_order > obj2.draw_order:
              return 1
          elif obj1.draw_order < obj2.draw_order:
              return -1
          else:
              return 0