Re: [Rest2web-develop] Sort in indextree
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2007-01-01 23:47:40
|
Gael Varoquaux wrote: > Hi all, > > and happy new year ! > > I have made a small modification to "indextree" to allow for sorting the > nodes of the same depth. This simply add a "cmp" keyword argument that > acts exactly as in list sorting (well, actually it is implemented using > list sorting). The patch is trivial and I find this very useful. I am > sending it along and proposing it for inclusion. > So your patch just allows the passing in of a comparison function to the sidebar function. If a comparison function is passed in, it is used to sort the pages. It sounds fine. Can you give me an example function I can put in the docs ? Thanks (and happy new year). Michael http://www.voidspace.org.uk/python/articles.shtml > Cheers, > > Gaël > > |