I'm working on building my own module, and it uses functionality similar to comments, so I'm trying to use it as a reference.
My module uses replies, which are 'threaded' to a parent reply. There are also multiple parent replies on each page.
I'm trying to first find the best way to obtain the correct order for the replies, as well as thread them correctly. I'm confused looking in the code how their vancode functionality works and how the system correctly places comment entities in the correct position.
Is there anyone who can shed some light on the subject, maybe by using some easy to understand examples or language ?