Modify

Opened 6 years ago

#4081 new defect

Patch to Ensure Lexicographical SubWiki Ordering

Reported by: Game_Ender Owned by: coderanger
Priority: normal Component: HierWikiPlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description

Before the patch I have made I would get this order:

Meetings/2008-02-25 
Meetings/2008-10-16
Meetings/2008-06-03
Meetings/2007-12-11

Afterwards I get this order:

Meetings/2007-12-11
Meetings/2008-02-25
Meetings/2008-06-03
Meetings/2008-10-16

I fixed it with following patch:

  • hierwiki/macros/subwiki.py

     
    5252            if md: 
    5353                title = md.group(1) 
    5454            good_pages.append((p, title)) 
     55        good_pages.sort() 
    5556        return html.UL([html.LI(html.A(p, title=t, href=req.href.wiki(p)), ' ', t) for p,t in good_pages]) 

(Attached as order_fix.patch)

Attachments (1)

order_fix.patch (458 bytes) - added by Game_Ender 6 years ago.
Patch to make sure the sub pages are properly sorted

Download all attachments as: .zip

Change History (1)

Changed 6 years ago by Game_Ender

Patch to make sure the sub pages are properly sorted

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.