Fixing issue with param filtering that was breaking search sorting
Stopped using ruby style boolean operators

'if not a and b' != 'if !a && b'