Skip to content

Commit ef39815

Browse files
Sort incidents by date descending on officer page (#112)
1 parent a285644 commit ef39815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenOversight/app/templates/partials/officer_incidents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h3>Incidents</h3>
22
{% if officer.incidents %}
33
<ul class="list-group">
4-
{% for incident in officer.incidents %}
4+
{% for incident in officer.incidents | sort(attribute='date') | reverse %}
55
<li class="list-group-item">
66
<h4>
77
<a href="{{ url_for('main.incident_api', obj_id=incident.id)}}">

0 commit comments

Comments
 (0)