diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 393f223ab..f12543efd 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -237,7 +237,7 @@ def get_inbox_partials(service_id): messages_to_show[human_readable] = message count_of_users = len(messages_to_show) - messages_to_show = reversed(sorted(messages_to_show.values(), key=lambda x: x['created_at'])) + messages_to_show = sorted(messages_to_show.values(), key=lambda x: x['created_at'], reverse=True) if not inbound_messages: inbound_number = inbound_number_client.get_inbound_sms_number_for_service(service_id)['data']['number']