if (oPV[i].Name.equals("SortFields")) {
TableSortField[] TableFields = (TableSortField[]) oPV[i].Value;
if (TableFields.length == 0) {
TableFields = new TableSortField[1];
TableFields[0] = new TableSortField();
}
for (int k = 0; k < TableFields.length; k++) {
TableFields[k].IsAscending = isSortAscending;