Ich kann dir das nicht verraten.
I'm given to understand that if the subject in the accusative case is a pronoun, (as in the sentence above?) it precedes the dative case. Otherwise, the dative comes first. Is this a grammatical rule that must be followed or just some sort of a trend?
Is
Ich kann das dir nicht verraten
just as grammatically correct and understandable?
Why or why not?