Adding sorting to DQL query reduces the number of results

Thanks for the reply. Note that both queries are cascading by the same fields and the predicate I’m using to sort (Product.currentPrice) isn’t in them. Furthermore, I verified there are only about 200 nodes that don’t have that predicate. So I still think there might be some sort of a bug here. I can share the full queries with you privately if needed.


EDIT: in case you haven’t, please take a look at this similar issue. There, the only difference in the query is changing the sorting from ascending to descending, which again, decreases the number of results