<p>You could try <a href="http://twig.sensiolabs.org/doc/filters/reverse.html" rel="nofollow">twig's reverse filter</a>.</p>

<pre><code>{% for asset in entry.assetsField|reverse %}
    &lt;img src="{{ asset.url }}" alt="{{ asset.title }}"/&gt;
{% endfor %}
</code></pre>

CC BY-SA 3.0
2015-02-03T09:08:33.357Z
2015-02-03T09:08:33.357Z
Douglas McDonald
<p>Set the order parameter to <code>'sortOrder desc'</code>:</p>

<pre><code>{% set assets = myAssetsField.order('sortOrder desc') %}
</code></pre>

CC BY-SA 3.0
2015-02-03T09:13:39.360Z
The value isn't in the [list of possible values](http://buildwithcraft.com/docs/templating/craft.assets#order) in the Craft docs, but I will make P&T aware of this.
carlcs
CC BY-SA 3.0
2015-02-03T10:58:24.777Z
Ah. That's the sort parameter I was looking for. Marked Douglas' answer as accepted just because he was 3 minutes earlier, and both answers work. (And he has less rep than you)
peirix
CC BY-SA 3.0
2015-02-03T09:11:41.390Z
2015-02-03T09:11:41.390Z
carlcs
<p>Is there a way to reverse the Assets field keeping the fixed order? I've tried a couple of things:</p>

<pre><code>myAssetsField.order('fixedOrder desc') //breaks
myAssetsField.order('id desc') // wrong, since they're not sorted by id
myAssetsField.reverse() // does nothing
</code></pre>

<p>Any ideas?</p>

<assets><ordering>
Reverse Assets fixedOrder
# Reverse Assets fixedOrder

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

Is there a way to reverse the Assets field keeping the fixed order? I've tried a couple of things:
myAssetsField.order('fixedOrder desc') //breaks
myAssetsField.order('id desc') // wrong, since they're not sorted by id
myAssetsField.reverse() // does nothing

Any ideas?

**Tags:** assets, ordering

---

## 2 answers

### Answer by username_1 on 2015-02-03. Score: 4 | Accepted answer

You could try twig's reverse filter.
{% for asset in entry.assetsField|reverse %}
    
{% endfor %}


---

### Answer by username_2 on 2015-02-03. Score: 3

Set the order parameter to 'sortOrder desc':
{% set assets = myAssetsField.order('sortOrder desc') %}

> **Comments:**
> **username_2**: The value isn't in the [list of possible values](http://buildwithcraft.com/docs/templating/craft.assets#order) in the Craft docs, but I will make P&T aware of this.  
> **username_0**: Ah. That's the sort parameter I was looking for. Marked Douglas' answer as accepted just because he was 3 minutes earlier, and both answers work. (And he has less rep than you)  

---

