Opened 9 years ago

Last modified 5 years ago

#10614 new enhancement

[PATCH]: Formulardetails list not time-sorted

Reported by: falkb Owned by:
Priority: normal Component: TracFormsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


I don't see the order criteria of that list but how can I have it sorted by time? It seems it doesn't work.

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by anonymous

Is it possible to have also older changes than the most recently ones displayed?

comment:2 in reply to:  description Changed 9 years ago by falkb

Summary: Formulardetails list not time-sorted[PATCH]: Formulardetails list not time-sorted

This one should help:

  • tracformsplugin/0.11/tracforms/

    196196                 'author': tag.span(tag(_("by %(author)s", author=author)),
    197197                                    class_='author'),
    198198                 'time': time})
    199         return rendered
     199        return sorted(rendered, key=lambda k: k['time'], reverse=True)
    201201    # ISearchSource methods

comment:3 Changed 5 years ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.