We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a285644 commit ef39815Copy full SHA for ef39815
OpenOversight/app/templates/partials/officer_incidents.html
@@ -1,7 +1,7 @@
1
<h3>Incidents</h3>
2
{% if officer.incidents %}
3
<ul class="list-group">
4
- {% for incident in officer.incidents %}
+ {% for incident in officer.incidents | sort(attribute='date') | reverse %}
5
<li class="list-group-item">
6
<h4>
7
<a href="{{ url_for('main.incident_api', obj_id=incident.id)}}">
0 commit comments