code: def __sort_draw(self):
          
          if self.__do_need_sort_draw:
              self.__draw_objects.sort(key=cmp_to_key(self.__draw_cmp))
              self.__do_need_sort_draw = False
docs: Sort the drawable objects according to ascending order