Pre-sort each individual files (so you never have more than one in memory at a time), then just merge the files together. If a file is too big to be sorted, split it into smaller files first.
This is merge sort.
In reply to Re: read and sort multiple files
by ikegami
in thread read and sort multiple files
by newPerlr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |