Excellent, the thing works!

Thanx a lot!
  ----- Original Message ----- 
  From: Kent Johnson 
  To: Igor Mavrović - ma...@irb 
  Cc: Rich Lovely ; tutor@python.org 
  Sent: Wednesday, September 16, 2009 7:06 PM
  Subject: Re: [Tutor] Fw: utf locale sorting


  How about this (assuming both arguments need to be transformed)?
  key=lambda x:(locale.strxfrm(x[0][1]["sn"]),
  locale.strxfrm(x[0][1]["givenName"]))

  Kent


  __________ Information from ESET Smart Security, version of virus signature 
database 4429 (20090916) __________

  The message was checked by ESET Smart Security.

  http://www.eset.com


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to