Each county holds a lottery of sorts and then chooses which letter goes first. Then there is a second lottery to see which second letter in a name gets priority.
In other words DE could come before DA but after DO.
And in each of the 58 counties there will be a different order.
Check out the list of candidate names from Mehitabel’s link. I especially like ‘Craig “Tax Freeze” Freis’ on page 1 and ‘Ralph S. “Rotten” Sherwood’ on page 7.
There was a mayoral election in Compton that had its result changed once or twice (I lost count) because one of the candidates made a persuasive argument to a judge that he lost only because the other guy was incorrectly listed first.
I forget the utlimate outcome and if it’s like typical Compton politics, they will still be arguing about 20 years from now.
I think when you vote in Alpine County, the registrar (Fred) comes up to the registered voter (Al) and just asks him.