File: class/Extras/Code/Misc/sorter.py

import sys
lines = sys.stdin.readlines()           # sort stdin input lines,
lines.sort()                            # send result to stdout
for line in lines: print line,          # for further processing



[Home page] Books Code Blog Python Author Train Find ©M.Lutz