• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sort array of filenames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Sort array of filenames (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: -observeValueForKeyPath:ofObject:change:context: only,> defined for abstract class.
  • Next by Date: Re: Saving an AppleScript that targets my own application
  • Previous by thread: Sort array of filenames
  • Next by thread: Re: -observeValueForKeyPath:ofObject:change:context: only,> defined for abstract class.
  • Index(es):
    • Date
    • Thread