for(int loop=0; loop<orderByArray.length(); ++loop) {
String orderByString = orderByArray.getString(loop);
if( null == orderByString ) {
throw new Exception("Invalid query : orderBy specifier must be a string");
}
OrderSpecifier orderSpecifier = parseOrderSpecifier(orderByString);
orderBySpecifiers.add( orderSpecifier );
}
query.setOrderBySpecifiers(orderBySpecifiers);
}