function defaultSort (a, b) {
  return a - b
}

module.exports = function checksort (array, compare) {
  compare = compare || defaultSort

  for (var i = 1; i < array.length; ++i) {
    var a = array[i - 1]
    var b = array[i]

    if (compare(a, b) > 0) return false
  }

  return true
}

@@ -91,17 +91,20 @@
 , compar
-e
+ator
 ) %7B%0A  co
@@ -107,17 +107,20 @@
   compar
-e
+ator
  = compa
@@ -120,17 +120,20 @@
 = compar
-e
+ator
  %7C%7C defa
@@ -245,17 +245,20 @@
  (compar
-e
+ator
 (a, b) %3E

rename to comparator