I originally asked this on Stack Overflow, but I'm hoping for more response here.
In Craft, I'm trying to order entries by the title. Each title is a number, but the sort function handles it like a string. Because of that 100
shows up before 2
, 31
before 4
, and so on.
{% for entry in craft.entries.section('mySection').order('title').find() %}
<h2>§{{entry.title}}</h2>
{% endfor %}
Is there a way to do this without extending twig?