def reconstruct_queue(people):
queue = []<EOL>people.sort(key=lambda x: (-x[<NUM_LIT:0>], x[<NUM_LIT:1>]))<EOL>for h, k in people:<EOL><INDENT>queue.insert(k, [h, k])<EOL><DEDENT>return queue<EOL>
:type people: List[List[int]]
:rtype: List[List[int]]