i am no philosopher but what i can tell you, is that the exact word is not important, the thing that makes language useful among individuals is the ability to share information.
you could show your friend a digital image of the exact object that you intend to purchase and there would be no misunderstanding, because the image is encoded in a language (binary) that is more precise and minimizes data loss (compared to spoken language), and since where are such visual dependent beings, we have evolved to absorb this kind of data quickly and precisely.
the word sandwich may also be defined in physics in terms of geometric size, proportion and mass, or in chemistry in terms of ingredients and their composition, etc. that would reduce the chance of misunderstandings by using a less abstract language.
spoken language on the other hand makes room for ambiguity because of it's high levels of abstraction, a written symbol or a set of particular sound waves carries more information the more abstract it is (it also tends to require more previous knowledge).
so, the point in using such an abstract construct as the word sandwich is to save time, knowing that whoever you say this word, will know what you are referring to, and you won't have to show a picture of a sandwich to everyone, neither will you have to define a sandwich mathematically whenever you get hungry
so this begs the question, who actually defines the common abstract concept behind the word sandwich? and the answer is, we all do. when we use a word, we share information with the listener about the concept we are trying to communicate, i'll show you an example:
imagine there are two separate towns that eat different kinds of
sandwiches, they have the same ingredients but different size. over
time commercial trade makes the people of these towns interact more
and more, and between those interactions they begin to share culinary
knowledge and eventually, because of the thriving economy the
residents start creating restaurants in the opposite town, so suddenly
the word sandwich doesn't always mean what they have in mind, they may
get a bigger or a smaller portion than they expect, and over time the
meaning of the word expands to encompass both kinds of sandwich,
because people realize that the word they use to denominate a meal in
their native town may not mean the same to people abroad.
how this process begins and how it evolves over time is well beyond the scope of this question, and i believe we would have to do a more serious analysis to gain better insight on how words and their meanings evolve over time, given their frequency, between regions how they change when they are adopted by another culture and so on.
the previous example also asumes that the two hypothetical towns have a word for sandwich that share a common precursor, this may not be the case, for example, if a resident of a given country goes into another and realizes their concept of money is not the same the implications are less obvious but not less significant. the word is the same, but the inclination to spend it may be different, the importance that it plays in their life, is it bad to posses it? why?
i'd love to write about this all day but i'm getting hungry, i may as well go get a sandwich