def insert_alpha(self, text):
        index = 0
        while True:
            itemText = self.widget.itemText(index)
            if len(itemText) == 0:
                break
            if itemText > text:
                self.widget.insertItem(index, text)
                return
            index += 1
        self.widget.addItem(text)
dataset/ETHPy150Open ejeschke/ginga/ginga/qtw/Widgets.py/ComboBox.insert_alpha/original