"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _baseFlatten = require("./_baseFlatten.cjs");
const _baseOrderBy = require("./_baseOrderBy.cjs");
const _baseRest = require("./_baseRest.cjs");
const _isIterateeCall = require("./_isIterateeCall.cjs");
var sortBy = _baseRest.default(function(collection, iteratees) {
  if (collection == null) {
    return [];
  }
  var length = iteratees.length;
  if (length > 1 && _isIterateeCall.default(collection, iteratees[0], iteratees[1])) {
    iteratees = [];
  } else if (length > 2 && _isIterateeCall.default(iteratees[0], iteratees[1], iteratees[2])) {
    iteratees = [iteratees[0]];
  }
  return _baseOrderBy.default(collection, _baseFlatten.default(iteratees), []);
});
exports.default = sortBy;
//# sourceMappingURL=sortBy.cjs.map
