• 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
Sorting arrays with strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting arrays with strings


  • Subject: Sorting arrays with strings
  • From: "Mr. Gecko" <email@hidden>
  • Date: Sat, 15 Mar 2008 08:25:37 -0500

Hello I have a NSArray with all of the files names in a directory that my user specifies with an Open panel and I am needing to sort it in numeric order like -0 to -9 and 0 to 9 each file does have other things in the name for an example the name of the files are like text-1254.txt, text6578.txt is there a way to make an array with objects such as text-12. txt, text-3.txt, text6.txt, text654.txt be sorted like text-3.txt, text-12.txt, text6.txt, text654.txt
If you understand what I mean.


Thanks for any help,
Mr. Gecko
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sorting arrays with strings
      • From: mmalc crawford <email@hidden>
    • Re: Sorting arrays with strings
      • From: "I. Savant" <email@hidden>
  • Prev by Date: ScriptingBridgeConcepts problem
  • Next by Date: Re: Sorting arrays with strings
  • Previous by thread: Re: ScriptingBridgeConcepts problem
  • Next by thread: Re: Sorting arrays with strings
  • Index(es):
    • Date
    • Thread