You can not use the < or > operators to compare boolean expressions. the equals() method returns a boolean value.
true < false or true > false does not make sense. You can test for equality: == or !=
Where is the definition of the Orders1 class? Does it correctly define the method used in the Comparator interface?