She did it by herself all. She did it all by herself. The first sentence is unidiomatic and incorrect grammatically, whereas the second one is OK. (all) by hersekf is an idiomatic phrase. The adverb all, if used, with the adverbial phrase by oneself, it always comes before the phrase.