<p>The <code>fixedOrder</code> parameter makes your entries to be returned in the same order as the IDs you pass to the <code>id</code> parameter. So a simple solution would be to look up the entry IDs of your single section entries and get your entries via their IDs instead of the section handles.</p>

<pre><code>{% set entryIds = [3, 14, 15, 9, 26] %}

{% for entry in craft.entries.id(entryIds).fixedOrder(true) %}
    &lt;li&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/li&gt;
{% endfor %}
</code></pre>

<p>You can eighter look up the IDs in the database, or probably faster: add <code>{{ entry.id }}</code> to your current nav loop!</p>

<p><strong>Update:</strong> If you have a good reason to get them via their handles, use this snippet to get the entry IDs.</p>

<pre><code>{% set sectionHandles = ['arbeiten', 'info', 'kontakt', 'shop'] %}

{% cache globally for 3 years %}
    {% set entryIds = [3] %}
    {% for handle in sectionHandles %}
        {% set entryIds = entryIds|merge([ craft.entries.section(handle).first().id ]) %}
    {% endfor %}
{% endcache %}
</code></pre>

CC BY-SA 3.0
2015-02-28T16:00:35.970Z
I used the handles instead of ideas for lazyness reasons. I'll go with id's then. Thank you
KSPR
CC BY-SA 3.0
2015-02-28T12:22:15.040Z
2015-02-28T12:31:10.630Z
2015-02-28T12:31:10.630Z
carlcs
<p>I have this supersimple navigation:</p>

<pre><code>&lt;ul&gt;
   {% for entry in craft.entries.section('homepage, arbeiten, info, kontakt, shop') %}
       &lt;li&gt;
         &lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;
        &lt;/li&gt;
    {% endfor %}
&lt;/ul&gt;
</code></pre>

<p>Is it possible to add an order filter which orders the entry by the order I wrote the entry handles? I tried to apply <code>.fixedOrder</code> but that does nothing.</p>

CC BY-SA 3.0
2015-02-28T12:08:47.430Z
This is all single sections, right?
carlcs
CC BY-SA 3.0
2015-02-28T15:58:44.220Z
Yes {# More text for stack exchange validator#}
KSPR
<navigation>
Orderby writing sequence
# Orderby writing sequence

(Asked by: username_0 on 2015-02-28)

I have this supersimple navigation:

   {% for entry in craft.entries.section('homepage, arbeiten, info, kontakt, shop') %}
       
         {{ entry.title }}
        
    {% endfor %}


Is it possible to add an order filter which orders the entry by the order I wrote the entry handles? I tried to apply .fixedOrder but that does nothing.

**Tags:** navigation
> **Comments:**
> **username_1**: This is all single sections, right?  
> **username_0**: Yes {# More text for stack exchange validator#}  

---

## 1 answers

### Answer by username_1 on 2015-02-28. Score: 2 | Accepted answer

The fixedOrder parameter makes your entries to be returned in the same order as the IDs you pass to the id parameter. So a simple solution would be to look up the entry IDs of your single section entries and get your entries via their IDs instead of the section handles.
{% set entryIds = [3, 14, 15, 9, 26] %}

{% for entry in craft.entries.id(entryIds).fixedOrder(true) %}
    {{ entry.title }}
{% endfor %}

You can eighter look up the IDs in the database, or probably faster: add {{ entry.id }} to your current nav loop!
Update: If you have a good reason to get them via their handles, use this snippet to get the entry IDs.
{% set sectionHandles = ['arbeiten', 'info', 'kontakt', 'shop'] %}

{% cache globally for 3 years %}
    {% set entryIds = [3] %}
    {% for handle in sectionHandles %}
        {% set entryIds = entryIds|merge([ craft.entries.section(handle).first().id ]) %}
    {% endfor %}
{% endcache %}

> **Comments:**
> **username_0**: I used the handles instead of ideas for lazyness reasons. I'll go with id's then. Thank you  

---

