modxcms / Quip

A commenting component for MODX Revolution
https://modx.com/extras/package/quip
4 stars 16 forks source link

Descending sorting threaded comments #27

Open nsuomine opened 4 years ago

nsuomine commented 4 years ago

I noticed that Quip parses threaded comments wrong when you sort them in descending order.

When Quip is iterating threaded comments, a reply will be processed before its parent. That is why the reply appears under a wrong parent (=previous parent) in the thread. When the the order is ascending, the behaviour is normal.