Skip to content

Commit

Permalink
Update status.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alextreme authored Oct 16, 2024
1 parent 2000117 commit 13f0442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/open_inwoner/cms/cases/views/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_context_data(self, **kwargs):
# observation that on both OpenZaak and eSuite the returned list is ordered 'oldest-last'
# here we want it 'oldest-first' so we reverse() it instead of sort()-ing
if config.order_statusses_by_date_set:
statuses.sort()
statuses.sort(key=lambda s: s.datum_status_gezet)
else:
statuses.reverse()

Expand Down

0 comments on commit 13f0442

Please sign in to comment.