Use parameterName (variable) not "parameterName" (literal)
Protect QueueSorter from NPEs