Umenu filename numbering


    Apr 22 2011 | 9:44 am
    Hi all,
    I am populating a umenu with folders that contain samples numbered file-1.aiff, file-2.aiff, file-3.aiff ....... file 101.aiff etc
    My problem is that when I autopopulate a umenu like this the numbering gets mixed up - ie instead of the above, I see file-1.aiff, file-10.aiff, file-101.aiff, file-102.aiff .... file-109.aiff, file-11.aiff and so on...
    I thought this might have had something to do with the prefix mode however none of the options fix the problem... I need to access the items in the menu by index so this is proving rather annoying.
    Any ideas?
    Thanks
    Ben

    • Apr 22 2011 | 11:45 am
      It's simply the result of alphanumerical ordering. When a Operating system orders differently, it does it because it is programmed to recognize an order that is similar to what humans see. The only option is to either change the file name or sort everything in a coll using a second argument.
    • Apr 22 2011 | 12:02 pm
      Ok thanks for that, it makes more sense now for sure.
      I have decided to avoid the umenu altogether in this case (I wasn't intending on using it's UI functionality) and just use indexes to a coll containing the full path and filename of each file.
      Best
      Ben