Re: Multi Sort & Order with Akua Order List
Re: Multi Sort & Order with Akua Order List
- Subject: Re: Multi Sort & Order with Akua Order List
- From: has <email@hidden>
- Date: Tue, 4 Mar 2003 21:44:36 +0000
Steve Kump wrote:
Just using the Akua Sweets Order List. Works great on a list of lists that I
need to sort by the second item, then by the third, then by the first. What
I need to do though, is find a way to sort by the second item descending
order, third item ascending order, and then first item, ascending order.
Haven't been able to find this functionality as yet.
Too long since I used Akua Sweets, though can't recall it having this ability.
Any ideas? I have briefly looked at quickSort,
Don't know of any osaxen that do this, and don't think SBE's library
can reverse-sort on individual fields. I can send you my own
still-in-development sorting routine - it can reverse sort on any
specified field(s) and optionally sub-group the sorted items. Not
100% tested, but seems ok from what I've tried so far. Mail me
off-list if you wish a copy. Or you could try tableLib from my site:
it's a bit gnarly and unfinished in places, and it's only worth using
if you're doing a lot of stuff with table data, but it has filtering
and sorting functions built-in.
but like the simplicity of a single command.
Non-issue. Put the sorting code into its own library, and load it
into a property in your own script to use it. This takes one extra
line to do, which hardly constitutes clutter:
property SortLib : load script (alias "path to SortLib file") -- bind
SortLib to script
...
set sortedList to SortLib's sortList(someList) -- call library's handler
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.