Fixing missing global variable on product query sorting