local p=require(script.Parent.copy)local function d(d,T)local J=type(d)assert(J=="\116\097\098\108\101","\101\120\112\101\099\116\101\100 \097 \116\097\098\108\101 \102\111\114 \102\105\114\115\116 \097\114\103\117\109\101\110\116\044 \103\111\116 "..J)local C=p(d)table.sort(C,T)return C end return d

local copy = require(script.Parent.copy)

local function sort(list, comparator)
	local listType = type(list)
	assert(listType == "table", "expected a table for first argument, got " .. listType)
	
	local new = copy(list)

	table.sort(new, comparator)

	return new
end

return sort