Re: Sort array of filenames
Re: Sort array of filenames
- Subject: Re: Sort array of filenames
- From: Camillo Lugaresi <email@hidden>
- Date: Sun, 8 Jan 2006 15:21:28 +0100
On 08/gen/06, at 14:04, Sanri Parov wrote:
Hi everybody,
I 've got an array of filenames, obtained via
directoryContentsAtPath, but when it comes to see a description of
it, it's like this
English_1, English_10, English_11, English_2, English_3, etc...
I'd like to sort it like:
English_1, English_2, ... , English_1o, English_11
How can I achieve this?
Many thanks to all of you.
Use the NSNumericSearch option in the compare:options: method of
NSString.
Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden