sort the PromotionLog

This commit is contained in:
bsimpson63
2012-10-23 16:59:07 -04:00
parent bfa2d39cb9
commit 1faa705673

View File

@@ -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):