[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] String sorting ?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] String sorting ?
- From: Hjalte Møller <spleef.sc@xxxxxxxxx>
- Date: Sun, 27 Dec 2009 20:54:20 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=wYLKHUW593k5qXud48vuss1HNsXanCtlFgB5qcG6+Wc=; b=YImckyxfBqwv2/X4RkanhUYrKPx4hve9lZHNw/3mQ9bUfrbNYUO9VofU6Pc10lO1VN MSUKQZbcKFRR+WbYVsBSKCXrMCb1XEPO3SzqClyxynx4opZj03lF9MZ+4YjGa2DPhvUf Kl4wt8jQCA9z3Otzwmv5Wrzm2zWrwjVjXKoeE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nR7HIVyCuedPImjfuQJlH0+i8cjRJ0Lhd4titV1Zo+kNNMdlanKFSB0m7JGc3JRMbn CDJjB+ZQckU1nJhjp3RUMSHiRHbmAEkYS3ha+9FQzPSVvcn595WRQYW3up66dippP16m k1nLMnuhcXy+KfeMyxPTIjd3PNV8lrpmQxibA=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
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