[Zope] SQL list sorting
    Tim Zegir 
    trzegir at ncable.net.au
       
    Wed Jan 21 00:04:21 EST 2004
    
    
  
Hi all,
I have 2 sqlmethods foo and bar
then i have a python script 
-----------------------
x=int(myx)
mylist=[]
for result in context.foo:
	mylist.append(result)
if x == 2:
	for result in context.bar:
		mylist.append(result)
return mylist
-----------------------
what i want to do is sort this list by a field
eg. mylist.sort('fieldname')
but obviously the sort function dose not work like that
-- 
-tim zegir
    
    
More information about the Zope
mailing list