If you are really worried about future size and don't want to go to a full blown RDBM, why not use DB_File to create a temp database in /tmp and use a custom BTREE for the sort.
-Lee
"To be civilized is to deny one's nature."
Comment on Re: Schwartzian Transform and memory allocation.