StringBuilder sql = new StringBuilder("");
//String fieldPrefix = includeTablenamePrefix ? (modelEntity.getTableName(datasourceInfo) + ".") : "";
if (orderBy != null && orderBy.size() > 0) {
if (Debug.verboseOn()) Debug.logVerbose("Order by list contains: " + orderBy.size() + " entries.", module);
OrderByList orderByList = new OrderByList(orderBy);
orderByList.checkOrderBy(modelEntity);
orderByList.makeOrderByString(sql, modelEntity, includeTablenamePrefix, datasourceInfo);
}
if (Debug.verboseOn()) Debug.logVerbose("makeOrderByClause: " + sql.toString(), module);
return sql.toString();
}