public static boolean hasOrderBy ( JPQLExpression jpqlExpression ) { if ( isSelectStatement ( jpqlExpression ) ) { return ( ( SelectStatement ) jpqlExpression . getQueryStatement ( ) ) . hasOrderByClause ( ) ; } return false ; }
Checks for order by .