Okay I see now QuickSort has a dependency of QuickSortItem UDF.

Okay, make sure you have all 3 UDFs in the script or called.