Improve the UX when creating groups as a supervisor #123
@ -49,7 +49,10 @@ public class EditGroupPanel extends Panel {
|
||||
// since they may not be included in the relevant projects if they're inactive or completed.
|
||||
// To allow them to be removed from the group, it will not be possible to add them again.
|
||||
projects.addAll(model.getObject().getProjects());
|
||||
return projects.stream().toList();
|
||||
return projects
|
||||
.stream()
|
||||
.sorted(Comparator.comparing(Project::getStartDate).reversed().thenComparing(Project::getTitle))
|
||||
.toList();
|
||||
});
|
||||
add(
|
||||
new ListView<>("available_projects", availableProjects) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user