I noticed in many poems that the verses do not contain words according to proper grammar rules. I was told that poets are allowed to do this to incorporate rhyming words.
For example, in the famous Daffodils:
And then my heart with pleasure fills
And then my heart fills with pleasure
There are other examples in the same poem; it is a very common construct I have noticed.
What is it called?