in reply to sorting large files

Split each record into its constituent fields, save all in a database, calculate an index over each field and output all records sorted on any of the fields. As an added bonus you can even select which records you wish to output.

Database servers are optimized to do this sort of thing.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law