<p>You probably have to loop through all the speaker (ordered by lastName) that are related to the talks (the speaker entry is the <code>targetElement</code>). Then use one <code>craft.entries</code> (ElementCriteriaModel) for each loop to get the talk entry.</p>

<p>See <a href="https://craftcms.stackexchange.com/a/2010/125">this Q/A</a> for a comparable problem.</p>

CC BY-SA 3.0
2014-08-23T10:55:38.943Z
2014-08-23T10:55:38.943Z
2017-04-13T12:51:00.253Z
carlcs
<p>I have a series of talks that have speakers as a related entry.</p>

<p>I'm looking for a way to order the talks by the last name of the speaker (the last name is the title of the speaker channel).</p>

CC BY-SA 3.0
2014-08-27T14:03:33.587Z
Still looking for an answer, Steven?
carlcs
<entries><relations><ordering>
Order by related field title
# Order by related field title

(Asked by: username_0 on 2014-08-23)

I have a series of talks that have speakers as a related entry.

I'm looking for a way to order the talks by the last name of the speaker (the last name is the title of the speaker channel).

**Tags:** entries, relations, ordering

> **Comments:**
> **username_1**: Still looking for an answer, Steven?  

---

## 1 answers

### Answer by username_1 on 2014-08-23. Score: 1 | Accepted answer

You probably have to loop through all the speaker (ordered by lastName) that are related to the talks (the speaker entry is the `targetElement`). Then use one `craft.entries` (ElementCriteriaModel) for each loop to get the talk entry.

See [this Q/A](https://craftcms.stackexchange.com/a/2010/125) for a comparable problem.


---

