// sort is by the join column but in the wrong order
q = pm.newQuery(
"select from " + Student.class.getName() + " where "
+ "courses.contains(c) && c.department == 'Biology' && "
+ "grade == 10 order by courses desc");
q.declareVariables(Course.class.getName() + " c");
q.addExtension(DatastoreManager.QUERYEXT_INMEMORY_WHEN_UNSUPPORTED, "false");
try {
q.execute();
fail("expected exception");
} catch (JDOUserException jdoe) {