Skip to content

Commit 2aeb8e8

Browse files
committed
using configured index now as sort order for projects in report
1 parent 52c6bb6 commit 2aeb8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/doubleslash/keeptime/view/ReportController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private void updateReport(final LocalDate dateToShow) {
186186
colorTimeLine.update(currentWorkItems, controller.calcSeconds(currentWorkItems));
187187

188188
final SortedSet<Project> workedProjectsSet = currentWorkItems.stream().map(Work::getProject)
189-
.collect(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Project::getName))));
189+
.collect(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Project::getIndex))));
190190

191191
long currentWorkSeconds = 0;
192192
long currentSeconds = 0;

0 commit comments

Comments
 (0)