import g from "./_compareAscending.js";
function l(i, n, t) {
  for (var r = -1, a = i.criteria, c = n.criteria, d = a.length, o = t.length; ++r < d; ) {
    var e = g(a[r], c[r]);
    if (e) {
      if (r >= o)
        return e;
      var f = t[r];
      return e * (f == "desc" ? -1 : 1);
    }
  }
  return i.index - n.index;
}
export {
  l as default
};
