* @return a basic QOM to test order by queries.
* @throws RepositoryException if an error occurs.
*/
protected QueryObjectModel createQOM(boolean ascending)
throws RepositoryException {
DynamicOperand op = createOrderingOperand();
Ordering ordering;
if (ascending) {
ordering = qf.ascending(op);
} else {
ordering = qf.descending(op);