Solution for the xkcd restaurant order.

NamePriceQty

View source for the algorithm.