def __searchHistory(self, txt, startIdx = -1):
        """
        Private method used to search the _history.
        
        @param txt text to match at the beginning (string or QString)
        @param startIdx index to start search from (integer)
        @return index of 
        """
        if startIdx == -1:
            idx = 0
        else:
            idx = startIdx + 1
        while len(self._history) < idx and \
              not self._history[idx].startsWith(txt):
            idx += 1
        return idx
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/interactive_console/gui/shellWidget.py/SciShell.__searchHistory/swapped operands of `<`