Added support and tests for generating ord comparison expressions. Fixed related parser precedence bug.