Hi,
I want to use language-alternate fields inside selectors for manipulating PageArrays, i.e. find(), sort() or filter().
I have set up a multi-lingual file upload with the file field "fileField" and its language alternate fields "fileField_lang1", "fileField_lang2", ...
This works as expected:
$matches->sort("-fileField.modified");
While this:
$matches->sort("-fileFile_lang1.modified");
...throws an error: "Recoverable Fatal Error: Argument 1 passed to ProcessWire\PageArray::getItemPropertyValue() must be an instance of ProcessWire\Wire, boolean given, called in ..."
Maybe I have to turn off outputFormatting? But how would I do that in this context?
Any help is well appreciated, thx.