import c from "./index.es282.js";
import d from "./index.es196.js";
import e from "./index.es188.js";
function x(u, t, f) {
  var a = 0;
  return t = c(t, f), d(e(u, function(i, n, r) {
    return {
      value: i,
      index: a++,
      criteria: t(i, n, r)
    };
  }).sort(function(i, n) {
    var r = i.criteria, o = n.criteria;
    if (r !== o) {
      if (r > o || r === void 0) return 1;
      if (r < o || o === void 0) return -1;
    }
    return i.index - n.index;
  }), "value");
}
export {
  x as default
};
//# sourceMappingURL=index.es202.js.map
