Hi,
I think I just ran into a strange Ditto behavior. I'm using a custom snippet and running Ditto using $modx->runSnippet function. I'm using the Ditto parameters 'sortBy' and 'sortDir' along with 'filter'. When I use a filter like 'pagetitle,search term here, 9', the sortBy and sortDir conditions are followed. But when I use a filter such as 'template,6,1' which I need to get rid of certain documents using that specific template, the sort order is being ignored. Is this a bug?
Ok, for what it's worth, I read up that the parameter orderBy's used in later versions of Ditto, so I used that instead of sortBy and sortDir and voila, it worked. To sum it up, if you're using Ditto and Filters, you need to sort using orderBy.