In fact, it’s really simple. All you need to do is find the logical order example and you can immediately understand what is wrong with your text, where you deviated from the topic, or what is misrepresentation. Usually, so as not to waste time editing after writing, I write a clear plan of the structure of the text and write my writing assignment from it. You can read more about this in this article https://wr1ter.com/logical-order . I believe that the definitions and rules for writing such works are very simply and clearly explained here.