in reply to Sorting a large file

An idea: Use perl to import log file into mysql (or your favorite dbms) and use a perl script like
Open file while !eof { <chomp> insert into log_file values (time,value,sql) }
Then report using:
select * from log_file order by sql
Zak