* : a string with the name of the sortlist that is to be
* returned
* @return String: a string as a piece of an sql statement
*/
protected String getSortOrder(String sortList) {
SortOrder tempList = sortListKeeper.get(sortList);
StringBuffer back = new StringBuffer(" ORDER BY ");
back.append(tempList.getLastPrefered());
back.append(" " + tempList.getAscDesc());
for (int r = 0; r < tempList.getSortList().length; r++) {
if (!tempList.getLastPrefered().equals(tempList.getSortList()[r])) {
back.append(", " + tempList.getSortList()[r] + " "
+ tempList.getAscDesc());
}
}
back.append(" ");
return back.toString();
}