import _baseRest_default from "./_baseRest.js";
import _isIterateeCall_default from "./_isIterateeCall.js";
import _baseFlatten_default from "./_baseFlatten.js";
import _baseOrderBy_default from "./_baseOrderBy.js";
var sortBy_default = _baseRest_default(function(e, i) {
	if (e == null) return [];
	var a = i.length;
	return a > 1 && _isIterateeCall_default(e, i[0], i[1]) ? i = [] : a > 2 && _isIterateeCall_default(i[0], i[1], i[2]) && (i = [i[0]]), _baseOrderBy_default(e, _baseFlatten_default(i, 1), []);
});
export { sortBy_default as default };
