Kent Johnson wrote: > dirs.sort(key=str.lower) # note no need for lambda However, this will raise a TypeError for unicode directory names while the lambda continues to work. Peter