def rl_fixorder(strings):
    """ fix implicit sorting of readline.
   
        if the strings are not accidentally sorted 
        then fix the current 'strings' order.
    """
    num = len(strings)
    for s1, s2 in zip(strings, strings[1:]):
        if s1 >= s2:
            digits = num <= 10 and '%d ' or '%02d '
            for i in range(num):
                strings[i] = digits % i + strings[i]
            break
