Dynamic date hierarchy selection

Excellent article to learn. Thx for that. I successfully could adapt and use it with my own dataset.
Actually the sorting part doesn’t seem to work correctly in the sample as in my own visuals. The sorting seems to break with the two digit month (correct sorting until Sept, but Nov-Dec will not). Anyone an idea how to fix this?