[Rest2web-develop] Ordering page and subsection links
Brought to you by:
mjfoord
From: Andrew I. <and...@us...> - 2008-12-17 21:14:21
|
I noticed that the links from the print_details macro would appear in random order. This code change sorts them by default. Should this perhaps be an option (sort=True) on print_details? Andrew Ittner Index: rest2web/functions.py =================================================================== --- rest2web/functions.py (revision 248) +++ rest2web/functions.py (working copy) @@ -457,7 +457,8 @@ if pages and do_pages: print page_title entries = [] - for page in pages: + + for page in sorted(pages): val = link % (page[0], page[1]) if do_description: val += description % page[2] @@ -467,7 +468,7 @@ if subsections and do_subsections: print subsection_title entries = [] - for page in subsections: + for page in sorted(subsections): val = link % (page[0], page[1]) if do_description: val += description % page[2] |