<doocs>0406.Queue Reconstruction by Height_1.py
def reconstructQueue( people: List[List[int]]) -> List[List[int]]:
    people.sort(key=lambda x: (-x[0], x[1]))
    ans = []
    for p in people:
        ans.insert(p[1], p)
    return ans
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> List [ List [ int ] ] :
    var_0.sort ( var_4 = lambda var_5 : ( - var_5 [ 0 ] , var_5 [ 1 ] ) )
    var_8 = [ ]
    for var_9 in var_0 :
        var_8.insert ( var_9 [ 1 ] , var_9 )
    return var_8
