6 locale.setlocale(locale.LC_ALL,
"")
9 sys.stderr.write(
"Usage: sort.py filename\n")
12 infile = open(sys.argv[1],
'r')
13 list = infile.readlines()
17 list[i] = list[i][:-1]
19 list.sort(key=locale.strxfrm)
20 print(
'\n'.join(list))
void print(const void *obj)
static struct cvec * range(struct vars *v, chr a, chr b, int cases)