private boolean checkFieldOrderByList ( SOQLParser . FieldOrderByListContext fieldOrderByList , String fieldName ) { return fieldOrderByList . fieldOrderByElement ( 0 ) . fieldElement ( ) . getText ( ) . equalsIgnoreCase ( fieldName ) ; }
Returns true if the first ORDER BY field matches fieldName