Jim and the Orders

  • [deleted]
    + 1 comment

    You could also just use a priority queue, it sorts everything as it goes in, so you just put things in, and then read them.