Fix issue where greaterThan and lessThan symbols appeared in the wrong order in category queries