It didn't work because $field was NULL. I'd expect this to be the same in the code for APIv3.
@dontub Could you elaborate on why you refactored the addOrderBy() method compared to what was done for APIv3? I don't quite get the old code but somehow it was working, why doesn't it with APIv4?
It didn't work because $field was
NULL
. I'd expect this to be the same in the code for APIv3.It didn't work because $field was
NULL
.