Rosetta Code:Village Pump/Sort popular pump pages: Difference between revisions

Content added Content deleted
No edit summary
Line 55: Line 55:
edits.append(Page(i,GetTimeStamp(x)))
edits.append(Page(i,GetTimeStamp(x)))


from operator import attrgetter
edits = sorted(edits, key=lambda x: x.time,reverse=True)
edits = sorted(edits, key=attrgetter('time'), reverse=True)


final = """This is the new place for Rosetta Code community activity. To start a new "thread", just append a "/" to the end of the URL of this page and give your thread a short title. On the new page, give a more detailed description of the topic as a heading, and write away. Also, link to the new topic on this page. Ex: <nowiki>{{vp|New topic}}</nowiki>.
final = """This is the new place for Rosetta Code community activity. To start a new "thread", just append a "/" to the end of the URL of this page and give your thread a short title. On the new page, give a more detailed description of the topic as a heading, and write away. Also, link to the new topic on this page. Ex: <nowiki>{{vp|New topic}}</nowiki>.