<p>I don't think it's possible to order by the name or handle of Entry Types. To order by the ID of your Entry Types use <code>'typeId'</code> as the value:</p>

<pre><code>{% set entries = craft.entries.section('more-info').order('typeId') %}
</code></pre>

<p>Now you only have to create your Entry Types alphabetically ;)</p>

CC BY-SA 3.0
2014-12-18T14:07:28.813Z
Create them alphabetically. Jup, that's nice. Until you want to add one later on ;)
Paul
CC BY-SA 3.0
2014-12-18T14:06:13.867Z
2014-12-18T14:06:13.867Z
carlcs
<p>I would like to order my entries by the entry type they have, so for instance:</p>

<pre><code>{% set entries = craft.entries.section('more-info').order('type') %}
</code></pre>

<p>However, this orders by entry type ID, and not by title, alphabetically. Can this be done? I've tried <code>order('type.title')</code>, but no luck (= DB error) ...</p>

<templating><ordering><order>
Is it possible to order entries by Entry type title/slug
# Is it possible to order entries by Entry type title/slug

(Asked by: username_0 on 2014-12-18)

I would like to order my entries by the entry type they have, so for instance:
{% set entries = craft.entries.section('more-info').order('type') %}

However, this orders by entry type ID, and not by title, alphabetically. Can this be done? I've tried order('type.title'), but no luck (= DB error) ...

**Tags:** templating, ordering, order

---

## 1 answers

### Answer by username_1 on 2014-12-18. Score: 2 | Accepted answer

I don't think it's possible to order by the name or handle of Entry Types. To order by the ID of your Entry Types use 'typeId' as the value:
{% set entries = craft.entries.section('more-info').order('typeId') %}

Now you only have to create your Entry Types alphabetically ;)

> **Comments:**
> **username_0**: Create them alphabetically. Jup, that's nice. Until you want to add one later on ;)  

---

