@russian-dima
Yes, I think that in complicated cases, using JS on the results is much easier,
Sometimes it’s the only way (for example I had to sort by absolute value: 0, 1, 2, -2, -3, 4. And that’s not supported by the query API, but it’s easy to do it using JS on the results etc.) .