View Full Version : sorting arrays

02 February 2005, 12:22 PM
hi all,

Is there a way of sorting an array into either numerical or alphabetical order? i'm using a blur function called "get_all_files_in_dir_rec" (thanks guys) to scan various folders for their contents and then using Rollout creator to generate a custom rollout with buttons for each file. So i can use it to scan for maxfiles for a merge dialog, and jpgs for a background image. Which ever i try depends on the dialog that is created.

but it seems to order the array in a random fashion. Is there a better way of doing this, either by finding these files a different way, or by sorting the array afterwards?

It would be interesting to see if you could sort the contents of an array by the save date too.

Grateful as always, of any help

02 February 2005, 02:04 PM
ok so it can be done with the 'sort' command. Didn't see that one coming. :scream:

CGTalk Moderation
02 February 2006, 03:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.