> assuming that DateTime returns something that compares correctly, you can
> do something like:
> 
>     def sortkey(item):
>         return item.get("from_datetime")
> 
>     data.sort(key=sortkey)
> 
> (assuming Python 2.4 or later)

Thank you very much, Frederik. Unfortunately, I can only use Python 2.3.5.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to