At Luke 18:18-20 we see:
A certain ruler asked him, “Good teacher, what must I do to inherit eternal life?” “Why do you call me good?” Jesus answered. “No one is good—except God alone. You know the commandments: ‘You shall not commit adultery, you shall not murder, you shall not steal, you shall not give false testimony, honor your father and mother.’
We see that Jesus is not quoting the commandments in the order of sequence they were given to Israel through Moses.
My question is: Are the Ten Commandments in OT arranged in the order of their importance to the believer, that is, if a person takes God's name in vain and then commits adultery, will his former sin be considered more serious than the latter one?
What do the teachings of Catholic Church tell us on the subject?