diff --git a/r2/r2/lib/promote.py b/r2/r2/lib/promote.py index 6aeb6194d..4fbeb81e4 100644 --- a/r2/r2/lib/promote.py +++ b/r2/r2/lib/promote.py @@ -1027,7 +1027,8 @@ class PromotionLog(tdb_cassandra.View): row = cls._byID(rowkey) except tdb_cassandra.NotFound: return [] - return row._values().values() + tuples = sorted(row._values().items(), key=lambda t: t[0].time) + return [t[1] for t in tuples] def Run(offset = 0):