Not sure about size.

Basically I would split the id into an array then creat a hash with the entire id as 
the value and whichever part of the array as the key then sort by the keys opf that 
hash.

How to do all of that you ask?

Depends on how the file is formatted and what you want to do with the result.
Is it one id per line, id is somewhere on the line, 
Basically since you know that you'd be the best judge of how to go about get the id 
and doing what you need.

Dan

-----Original Message-----
From: Konrad Foerstner [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 06, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: sorting an id like a.12.34


Hi Folks!

My problem: I have a file of ids like a.12.34 or z.9.234 and want to sort it into a 
new file. As the sort function sorts digit by digit I can't use it (not so easy). 
Additionally the data file is quite big (11M) so I don't know if it is okay to work 
with such big array.

I hope someone could help me on some parts of my problem.

cu

Konrad 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to