Re: getting a file list in sorted order
Re: getting a file list in sorted order
- Subject: Re: getting a file list in sorted order
- From: has <email@hidden>
- Date: Sun, 18 Aug 2002 17:21:54 +0100
Some doofus wrote:
>
Some doofus wrote:
>
[blah-blah-blah]
One other note about using a quicksort in place of a Finder sort: in
comparing for order, Finder sort considers/ignores characters by
[presumably] the same rules as HFS uses (case-insensitive, etc). The
quicksort will, of course, compare according to whatever
considering/ignoring rules AS is using at the time. If you're using it as
part of a larger project then for robustness you really want to put a
'considering punctuation, hyphens and white space but ignoring case and
diacriticals' block [1] around the quicksort call.
has
[1] This is one of those issues that's _very_ commonly overlooked in AS
code, btw. Explicitly declaring considering/ignoring rules everywhere isn't
usually necessary, but the issue should at least be considered during the
design process: like TIDs, when this one bites, it bites hard.
--
(My email address has changed from <email@hidden> to
<email@hidden>. Please update your address books accordingly.)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.