Comment Comment by noborus I wrote about how to solve with SQL. https://noborus.github.io/blog/jqsql/ parent noborus 4 years ago