Michael Ströder wrote: > mycmp=lambda x,y: cmp(x[0].lower(), y[0].lower()) > alist.sort(mycmp) I found this and solved too. Big thanks :) -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL, CentOS, Debian: http://code.google.com/p/iredmail/