Sorted was not being passed if instantiating via function

If instantiating by calling a function the sorted boolean was not being passed.