scott wrote something to do that a while ago. https://listarc.bham.ac.uk/lists/sc-users/msg53025.html example:["1_bass.aif", "2_sn.wav", "10_file.wav", "11_etc.aif"].sort{|x, y| x.naturalCompare(y)<0}
i can't reproduce your document backwards sorting problem. which sc version are you using? i'm on the latest svn checkout and i also tested with 3.3.1.
_f 27 dec 2009 kl. 20.58 skrev Hjalte Møller:
sorry to answer my own post, but I forgot one thing...When a bunch of files is dragged 'n' dropped to a Document window, the files get sorted backwards ?2009/12/27 Hjalte Møller <spleef.sc@xxxxxxxxx> Hello list,Is there any way to sort strings according to how they are sorted by the OS ?If you have a list of files like 1_bass.aif 2_sn.wav ... 10_file.wav 11_etc.aif and collect them in an array, and sort them, you get 1_ 10_ 11_ 2_I know that is correct behavior, but it would be nice to be able to sort like osx does.Best, Hjalte
#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/