Are you referencing `sortRows` as a global variable?