Sin Hang Kin wrote:
I have some folders : news, events, activities, etc, which each of them have some items.
The application will generate a list of them in reverse date order. This have been done.
Now, I would like to add a new listing : to list all of them in reverse date order. i.e., I need to make a union of them first, then sort them. Is it possible to do this?
Rgs,
Kent Sin
some code i was playing with that seems like a good starting point. <dtml-call "REQUEST.set('x', [ZopeTime(), ZopeTime(), ZopeTime()-8, 4, 5])"> <dtml-call "REQUEST.set('v', [7, 8, 9, 10])"> <dtml-call "REQUEST['x'].extend(v)"> <dtml-call "REQUEST['x'].sort()"> <dtml-var x> x gets rendered [4, 5, 7, 8, 9, 10, DateTime('2000/04/19 01:15:42.8905 US/Eastern'), DateTime('2000/04/27 01:15:42.8898 US/Eastern'), DateTime('2000/04/27 01:15:42.8902 US/Eastern')] hope this helps Kapil www.sin.wm.edu