Merged [5595] from rjsparks@nostrum.com:

Tweaked the grouping code to not break documents of the same type up
 - Legacy-Id: 5630
Note: SVN reference [5595] has been migrated to Git commit 581280be11
This commit is contained in:
Henrik Levkowetz 2013-04-07 19:14:10 +00:00
commit 68b697ccfc

View file

@ -657,7 +657,7 @@ def ad_dashboard_sort_key(doc):
changetime= doc.latest_event(type='changed_document')
if changetime:
ageseconds = (datetime.datetime.now()-doc.latest_event(type='changed_document').time).total_seconds()
return "1%d%s%010d" % (state[0].order,seed,ageseconds)
return "1%d%s%s%010d" % (state[0].order,seed,doc.type.slug,ageseconds)
return "3%s" % seed