Question about sorting by date:
I am trying to sort the Induction Date column by descending date (newest at the top) in my module but when I add new "Inductees" into my HubDB table it just throws them to the bottom. I obviously have the sort wrong. Help please:
<table class="hall-of-fame-table">
<thead>
<tr>
<th>Inductee Name</th>
<th>Inducted Date</th>
</tr>
</thead>
<tbody>
{% set table = hubdb_table_rows(120557410) | sort(True, 'induction_date') %}
{% for row in table %}
<tr>
<td class="name-cell" data-label="Inductee Name">{{ row.first_name }} {{ row.last_name }}</td>
<td data-label="Inducted Date">{{ row.induction_date|datetimeformat('%B %e, %Y') }}</td>
</tr>
{% endfor %}
</tbody>
</table>