Hey Jon, I'm using the following form (cribbed from Mozilla)
function compare(a, b) {
  if (a is less than b by some ordering criterion)
     return -1;
  if (a is greater than b by the ordering criterion)
     return 1;
  // a must be equal to b
  return 0;
}
(The function failed when using -1,1 or false,true) Or am I missing something blindingly obvious here?