I'm trying to add an
sort condition to an EFQ on an reference entity table, I think a code example explains this better.
$query = \Drupal::entityTypeManager()->getStorage('node')->getQuery(); $ids = $query->condition('type', 'some_type') ->condition('some_more', 'conditions') ->sort('a_term_field', 'ASC') ->execute();
Now what happens is that the nodes will be sorted by the term id (since that is what is stored in the field table) but I would like to sort on the term label instead. Is something like that possible with EFQs?