127
Falsehoods programmers believe about languages
(www.lexiconista.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
"All languages (that use the Latin alphabet) have the same alphabetical sorting order." oh this one is very unexpected to me. Does someone know an example? I'm curious
In Denmark we have the digraph "aa" that is the same as "å". Since "å" is the last letter in the Danish alphabet, "aa" must be sorted likewise. Hence the ordering Aalborg -> Allerup -> Middelfart is incorrect and the correct ordering is Allerup -> Middelfart -> Aalborg.
The exception is if two a's are pronounced as separate vowels e.g. due to compounding words: "ekstra" + "arbejde" gives "ekstraarbejde" but here it is not pronounced as "å" so ekstraarbejde -> ekstrabetaling is correct ordering as well
https://en.m.wikipedia.org/wiki/Danish_and_Norwegian_alphabet
Middelfart? :-D
It's not too smelly, but it's not completely benign either.
The great city of Middelfart ;) https://en.m.wikipedia.org/wiki/Middelfart
Many examples are listed on Wikipedia: https://en.m.wikipedia.org/wiki/Alphabetical_order#Language-specific_conventions
In German Ä comes after A, in Swedish Ä comes after Z