def METHOD_NAME(self, name, scheme):
    for i in range(1, self.scheme.count()):
        n = self.scheme.itemText(i)
        if n.lower() > name.lower():
            self.scheme.insertItem(i, name, scheme)
            break
    else:
        self.scheme.addItem(name, scheme)