I have a score template like this...
I expect this to be the performance by measure numbers and rehearsal marks...
A 1-8, 1-7, 9 B 10-25 C 26-33, 26-31, 34-38 D.C. al Coda A 1-7, 9 B 10-24 Coda 39-40
This template is in MuseScore 3.6. It plays it once according to the order or measure I expect, but then it plays the whole sequence again but playing only the volta second endings, ignoring the D.C al Coda, and moving from the trio to the coda ending mm. 38-40.
Have I made a mistake with the repeat signs or is MuseScore playing it wrong? I suspect it's my mistake, but I don't know what I've done wrong.
EDIT
Screen shots of the inspector, MuseScore 3.6...