On Jun 9, 2006, at 2:26 PM, Patrick Lewis wrote:
> var compare_items = function(a, b){
> return compare(a[1], b[1])
> }
MochiKit.Base.keyComparator does exactly that:
var compare_items = keyComparator(1);
... though in this case, you might want to uppercase the strings or
something for a case insensitive sort.
-bob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---