Ta,
Quentin
--------------
#! /usr/local/bin/python
def compare(l1,l2):
if l1 < l2:
return -1
if l1 > l2:
return 1
return 0
names = ['joe', 'fred', 'peter']
names.sort(compare)
for i in names:
print i
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quentin Stafford-Fraser Tel: +44 223 341521
Rank Xerox EuroPARC, Fax: +44 223 341510
61 Regent Street, Home: +44 223 324451
Cambridge, CB2 1AB
United Kingdom Fraser@europarc.xerox.com