Hi, I'm having trouble understanding the way "tout" acts in sentences when being used as a pronoun. In another lesson it says that "tout" can be used as a pronoun, however in passé composé the structure is usually: "subject + object pronoun + auxillary verb + past participle", for example "Je l'ai mangé".
My understanding is that the correct sentence would be "J'ai tout mangé", and not "Je tout ai mangé". Could someone please help me understand, is there a rule for as to why tout behaves differently than others?