On Nov 29, 2006, at 12:56 PM, Drew Olson wrote:

> Here's another question: in some cases I need to sort the
> file before splitting it (in this case sorting by the 4th cell in each
> row). However, the current file I'm trying to sort and split is around
> 76 MB and ruby fails when trying to store the CSV as an array. The  
> code
> and output are below. How else can I go about this?

Hmm, that's a good question.

Perhaps you can collect just the key values in an Array and then use  
those to reorder the lines bit by bit.  That's not going to be fast  
with any library helping you, but I don't have a better idea.

James Edward Gray II