I have a section where its entries have a matrix field (matrixField). In the first matrix block there is a date field (dateField). I want to get my entries ordered by that date field. Is this possible? Pseudocode:
{% for entry in craft.entries.section('dates').order(matrixField.first().dateField).limit(5) %} ...
Variable "matrixField" does not exist. The Craft docs say that "Possible values include 'title', 'id', ..., as well as any textual custom field handles." A matrix field is not a textual field and I do not think that the expression inside the order parameter gets evaluated.