[OPEN-ILS-DEV] LC Sort

Jason Etheridge jason at esilibrary.com
Sun Nov 23 22:41:41 EST 2008


> sort[1] = function lccn_sort(a,b,n) {

And of course, you can't plug something like that directly into a
Perl/Javascript sort function, so you really need a function generator
using closures.

sort[1] = function (a,b,n) { return function(a,b) { ... }; }

-- 
Jason Etheridge
 | VP, Community Support and Advocacy
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  jason at esilibrary.com
 | web:  http://www.esilibrary.com


More information about the Open-ils-dev mailing list