Skip to content
Snippets Groups Projects
Commit 74f4fe0a authored by srosse's avatar srosse
Browse files

OO-1669: separate the enum sort from the user properties

parent a8cbee77
No related branches found
No related tags found
No related merge requests found
......@@ -45,12 +45,16 @@ public class CoachParticipantsModelSort extends SortableFlexiTableModelDelegate<
@Override
protected void sort(List<CoachedIdentityRow> rows) {
int columnIndex = getColumnIndex();
CGCols column = CGCols.values()[columnIndex];
switch(column) {
case taskStatus: Collections.sort(rows, new TaskStatusComparator()); break;
default: {
super.sort(rows);
if(GTACoachedGroupGradingController.USER_PROPS_OFFSET < columnIndex) {
CGCols column = CGCols.values()[columnIndex];
switch(column) {
case taskStatus: Collections.sort(rows, new TaskStatusComparator()); break;
default: {
super.sort(rows);
}
}
} else {
super.sort(rows);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment