Jim and the Orders

  • + 0 comments

    Your code as one line.

    [i[0] for i in sorted(enumerate(orders, 1), key = lambda x: sum(x[1]))]