3 import sys
, string
, locale
4 locale
.setlocale(locale
.LC_ALL
, "")
7 sys
.stderr
.write("Usage: sort.py filename\n")
10 infile
= open(sys
.argv
[1], 'r')
11 list = infile
.readlines()
14 for i
in range(0, len(list)):
15 list[i
] = list[i
][:-1] # chop!
17 list.sort(locale
.strcoll
)
18 print string
.join(list, '\n')