Re: pythonic way to sort

2006-05-04 Thread Boris Borcic
Jay Parlar wrote: > > On May 4, 2006, at 12:12 AM, [EMAIL PROTECTED] wrote: > [...] > Assume that you have the lines in a list called 'lines', > as follows: > > lines = [ >"1SOME STRING ~ABC~12311232432D~20060401~", >"3SOME STRING ~ACD~14353453554G~20060401~",

Re: pythonic way to sort

2006-05-03 Thread Jay Parlar
On May 4, 2006, at 12:12 AM, [EMAIL PROTECTED] wrote: > hi > I have a file with columns delimited by '~' like this: > > 1SOME STRING ~ABC~12311232432D~20060401~ > 2SOME STRING ~DEF~13534534543C~20060401~ > 3SOME STRING ~ACD~14353453554G~20060401~ > > . >

Re: pythonic way to sort

2006-05-03 Thread Robert Kern
[EMAIL PROTECTED] wrote: > hi > I have a file with columns delimited by '~' like this: > > 1SOME STRING ~ABC~12311232432D~20060401~ > 2SOME STRING ~DEF~13534534543C~20060401~ > 3SOME STRING ~ACD~14353453554G~20060401~ > > . > > What is the pythonic way