We do not currently use the sorted version of this input in the function, which means we produce bad results.