<p>I think the simplest solution is to use a plugin like <a href="https://github.com/victor-in/Craft-TwigBetterSort/" rel="nofollow">Twig Better Sort</a> or <a href="http://michaelrog.com/craft/lagniappe/supersort" rel="nofollow">SuperSort</a>. With those you would query for your entries as normal and then apply the Twig filter to sort the array.</p>

<pre><code>{% set entries = craft.entries.section('mySection') %}
{% set entries = entries|supersort('natsortAs', '{title}') %}
</code></pre>

CC BY-SA 3.0
2015-03-31T10:21:08.107Z
2015-03-31T15:58:07.493Z
2015-03-31T15:58:07.493Z
carlcs
<p>my entries have simple numbers as title (1, 2, 3, ... 10, 11 etc.). I'd like to order them naturally and not 1, 10, 11, 2, 3 etc. Is Craft allowing this? </p>

<ordering>
How to order numbers naturally?
# How to order numbers naturally?

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

my entries have simple numbers as title (1, 2, 3, ... 10, 11 etc.). I'd like to order them naturally and not 1, 10, 11, 2, 3 etc. Is Craft allowing this?

**Tags:** ordering


---

## 1 answers

### Answer by username_1 on 2015-03-31. Score: 5

I think the simplest solution is to use a plugin like Twig Better Sort or SuperSort. With those you would query for your entries as normal and then apply the Twig filter to sort the array.
{% set entries = craft.entries.section('mySection') %}
{% set entries = entries|supersort('natsortAs', '{title}') %}


---

