In phrase 1, "an seanteach" is not the object of the verb, it's the object of the preposition "ag".
In phrase 2 "na doirse agus na fuinneogaí [there should be no lenition]" are the objects of the verb "péinteáil" and "an áit uilig" is the object of the verb "glanadh".
So the two phrases are not equivalent to each other. Generally in a non-finite clause the object precedes the verb, but a prepositional phrase can come after the verb.
In case anyone is confused, in Standard Irish the sentence would be: "B'éigean a ghabháil chuig an seanteach arís anuraidh agus na doirse agus na fuinneoga a phéinteáil agus an áit uilig a ghlanadh."