summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-01 16:32:46 +0000
committerErik Johnston <erik@matrix.org>2016-02-01 16:32:46 +0000
commit89b40b225cda4326081f6735b2a8a9bff5ce3446 (patch)
treee1370adf48d36f3e0f9d5c02ce305d56f3dc75b3 /synapse/handlers/room.py
parentSwitch over /events to use per room caches (diff)
downloadsynapse-89b40b225cda4326081f6735b2a8a9bff5ce3446.tar.xz
Order things correctly
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index aca795e1c4..a71cba8ef1 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -1022,7 +1022,7 @@ class RoomEventSource(object):
             events = list(room_events)
             events.extend(e for evs, _ in room_to_events.values() for e in evs)
 
-            events.sort(key=lambda e: e.internal_metadata.after)
+            events.sort(key=lambda e: e.internal_metadata.order)
 
             if limit:
                 events[:] = events[:limit]