* order-property
*/
protected void evaluateResultOrder(QueryResult queryResult, String propName,
boolean descending)
throws RepositoryException, NotExecutableException {
RowIterator rows = queryResult.getRows();
if (getSize(rows) < 2) {
fail("Workspace does not contain sufficient content to test ordering on result nodes.");
}
// need to re-aquire rows, {@link #getSize} may consume elements.
rows = queryResult.getRows();
int changeCnt = 0;
String last = descending ? "\uFFFF" : "";
while (rows.hasNext()) {
String value = rows.nextRow().getValue(propName).getString();
int cp = value.compareTo(last);
// if value changed evaluate if the ordering is correct
if (cp != 0) {
changeCnt++;
if (cp > 0 && descending) {