Nobody has tested whether beer before liquor makes a hangover worse
The one trial of drinking order used beer and wine. No study putting beer and spirits in either order turned up, so the saying is untested for liquor, not disproved.
What the study found
No study has tested beer before liquor, or liquor before beer
The only trial of drinking order used lager and white wine. Searches of medical databases and trial registers turned up no study of beer and spirits in either order. The US alcohol institute calls the saying a myth without citing a study, so for liquor it is untested, not disproved.
The caveat · An announced app study, no results
The nearest study is a 35-person pilot in which people free to mix beer, wine and cocktails drank nearly twice as much and felt worse, which says nothing about order at a matched amount. A 2020 project page announcing an analysis of drink types and combinations from a drinking app shows a description and no results.