<p>It's as simple as passing <code>dateCreated</code> into the <code>order</code> parameter, like so:</p>

<p><code>{% set downloads = entry.files.order( 'dateCreated desc' ) %}</code></p>

<p>If you're showing these from multiple entries you'd need to get all assets that relate to those entries and then order them as above. Something like:</p>

<p><code>{% set downloads = craft.assets.relatedTo( entries ).order( 'dateCreated desc' ) %}</code></p>

CC BY-SA 3.0
2016-08-26T12:14:34.217Z
Excellent - I'd literally just found it out a few minmutes ago by doing more searching on here. Your answer is 100%.
{% set content = craft.entries.section('repository').find() %}
{% set latestfiles = craft.assets.relatedTo(content).order('dateUpdated desc').limit(10) %}
mmc501
CC BY-SA 3.0
2016-08-26T11:59:58.070Z
2016-08-26T11:59:58.070Z
Luke Pearce
<p>I have a structure which is  basically categories of Downloads.
In each Entry there is an "Files" field where multiple assets can be selected.</p>

<p><a href="https://i.sstatic.net/JbiFy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JbiFy.png" alt="Downloads"></a></p>

<p>On a Summary page I want to display the latest assets added.
How can I pull these? </p>

<entries><assets><elementcriteriamodel>
Get latest assets added to structure
# Get latest assets added to structure

(Asked by: username_0 on 2016-08-26)

I have a structure which is basically categories of Downloads.
In each Entry there is an "Files" field where multiple assets can be selected.

[![Downloads](https://i.sstatic.net/JbiFy.png)](https://i.sstatic.net/JbiFy.png)

On a Summary page I want to display the latest assets added.
How can I pull these?

**Tags:** entries, assets, elementcriteriamodel


---

## 1 answers

### Answer by username_1 on 2016-08-26. Score: 1 | Accepted answer

It's as simple as passing `dateCreated` into the `order` parameter, like so:

`{% set downloads = entry.files.order( 'dateCreated desc' ) %}`

If you're showing these from multiple entries you'd need to get all assets that relate to those entries and then order them as above. Something like:

`{% set downloads = craft.assets.relatedTo( entries ).order( 'dateCreated desc' ) %}`

> **Comments:**
> **username_0**: Excellent - I'd literally just found it out a few minmutes ago by doing more searching on here. Your answer is 100%. {% set content = craft.entries.section('repository').find() %} {% set latestfiles = craft.assets.relatedTo(content).order('dateUpdated desc').limit(10) %}  

---

