No, sorting by name is incredibly complicated.
For example in Danish the letter å can be replaced with aa, which it is in the official spelling of some towns. But they are still sorted as if they where spelled with an å.
*source of this particular exempl is about a decade old, so I might have misremembered some details