Here's what I do, but not incredibly consistently:
follow the style of the package your in. Usually consistency is better than splitting hairs over the "right" way"
If there's no consistent style established and if a class has only a few private helper functions, I try to keep the private helper methods next to the public methods that use them. Then...
If there's no consistent style and there are many private methods or the private methods are used by several, I eventually put all public methods on top and private methods below.
If things get too hairy, I just let IntelliJ sort it out.
That's for languages like Java that really don't care what order the methods are defined. In languages like C or Javascript that have to have definitions or have hoisting, it's a little more complicated so I usually just define all helper functions first like you have in your example.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here's what I do, but not incredibly consistently:
That's for languages like Java that really don't care what order the methods are defined. In languages like C or Javascript that have to have definitions or have hoisting, it's a little more complicated so I usually just define all helper functions first like you have in your example.