<qiyuangong>937_Reorder_Log_Files_2.py
def reorderLogFiles( logs):
    letter_logs = []
    digit_logs = []
    for log in logs:
        if log.split(' ')[1].isnumeric():
            digit_logs.append(log)
        else:
            letter_logs.append(log)
    return sorted(letter_logs, key=lambda x: x.split(' ')[1:] + x.split(' ')[0]) + digit_logs
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    var_2 = [ ]
    for var_3 in var_0 :
        if var_3.split ( ' ' ) [ 1 ].isnumeric ( ) :
            var_2.append ( var_3 )
        else :
            var_1.append ( var_3 )
    return sorted ( var_1 , var_10 = lambda var_11 : var_11.split ( ' ' ) [ 1 : ] + var_11.split ( ' ' ) [ 0 ] ) + var_2
