hi,

I have the following string 

$a = 
"buy 10/23/01 100 12.625 50 25.25 \n
 buy 10/25/01 100 12.625 50 25.25 \n
 buy 09/1/01 100 12.625 50 25.25 \n
 buy 1/23/01 100 12.625 50 25.25 \n";

I would like to sort this by the date (ie the second field) in the
above string. 

So it looks like this:

$a = 
"buy 1/23/01 100 12.625 50 25.25 \n";
 buy 09/1/01 100 12.625 50 25.25 \n
 buy 10/23/01 100 12.625 50 25.25 \n
 buy 10/25/01 100 12.625 50 25.25 \n;

What's the cleanest way to do this?

Thanks.



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

Reply via email to