Where did the word sandwich come from?

The Earl of Sandwich, either he or one of his servants put together two pieces of bread and some meat for the Earl to eat while playing cards. I don't know if the Earl won the card game.