It's been a while since the question, but if you are coming to this thread and you are still confused, I'd look at this:
https://blog.mecheye.net/2024/10/the-ultimate-guide-to-matrix-multiplication-and-ordering/
It has answers to all questions that you might have about matrices in HLSL and GLSL, including order of multiplication, row/column-major and math theory :)