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< ...@@ -45,12 +45,16 @@ public class CoachParticipantsModelSort extends SortableFlexiTableModelDelegate<
@Override @Override
protected void sort(List<CoachedIdentityRow> rows) { protected void sort(List<CoachedIdentityRow> rows) {
int columnIndex = getColumnIndex(); int columnIndex = getColumnIndex();
CGCols column = CGCols.values()[columnIndex]; if(GTACoachedGroupGradingController.USER_PROPS_OFFSET < columnIndex) {
switch(column) { CGCols column = CGCols.values()[columnIndex];
case taskStatus: Collections.sort(rows, new TaskStatusComparator()); break; switch(column) {
default: { case taskStatus: Collections.sort(rows, new TaskStatusComparator()); break;
super.sort(rows); 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