Re: [Rest2web-develop] problem with sort order of sections variable
Brought to you by:
mjfoord
From: martin f k. <ma...@ma...> - 2006-11-08 13:56:14
|
also sprach martin f krafft <ma...@ma...> [2006.11.08.1446 +0100]: > How can I then influence the sort order of the sections variable, > which is used e.g. by minibar. To sort by filename (=3D=3D target), I used the following hack, but there has to be a better way: <# def page_sorter(a, b): return cmp(a['target'], b['target']) sections[None]['pages'].sort(page_sorter) minibar(sections, intro=3D'', subsect=3DFalse) #> --=20 martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck =20 spamtraps: mad...@ma... =20 the best way to accelerate a computer running windoze is at 9.81 ms^-2 |