protected String orderBy(final List associations, final String orderBy) { String fullOrderBy = orderBy(associations); if ( fullOrderBy.length()== 0 ) { fullOrderBy = orderBy; } else if ( orderBy.length()!=0 ) { fullOrderBy = fullOrderBy + ", " + orderBy; } return fullOrderBy; }