The Tufte-Latex class has an option to place the margin for even pages on the left-hand side and for uneven pages on the right-hand side:
but unfortunately some sidenotes are still on the wrong side:
Is there any possibility to avoid this?
EDIT: The problem appears almost always for sidenotes in the first three sentences of a new page. Inserting
by hand above the problematic footnotes solves the problem, but obviously this is a bad solution.