RE: How to sort a list of file paths

2008-12-02 Thread Eriksson, John
","File1.txt","File10.txt"] file_list.sort(key=ALPHANUM_KEY) # --- Best Regards /John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Rebert Sent: den 2 december 2008 10:26 To: Eriksson, John Cc: python-list@

Re: How to sort a list of file paths

2008-12-02 Thread Chris Rebert
On Tue, Dec 2, 2008 at 12:36 AM, Eriksson, John <[EMAIL PROTECTED]> wrote: > Hi, > > > > This weekend I had some problems to get a list containing file paths to be > sorted in a way that I could use. > > > > I also found a thread in this mailing list ( > http://mail.python.org/pipermail/python-list

Re: How to sort a list of file paths

2008-12-02 Thread James Mills
Hi Eriksson, It's nice to see people actually contribute what they've learned back to the community. Great problem, well thought out solution and congrats on the learning :) I can't say per say that I've actually run into a situation where I need to sort file paths in this way ... But if I do I'l

How to sort a list of file paths

2008-12-02 Thread Eriksson, John
Hi, This weekend I had some problems to get a list containing file paths to be sorted in a way that I could use. I also found a thread in this mailing list ( http://mail.python.org/pipermail/python-list/2007-April/433590.html ) and realized that others might be interested in a solution. So...