Skip to content

Commit 3b6dcc8

Browse files
committed
Topics with n/a message count first
1 parent 497654d commit 3b6dcc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/io/kafbat/ui/controller/TopicsController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ private Comparator<InternalTopic> getComparatorForTopic(
363363
case SIZE -> Comparator.comparing(InternalTopic::getSegmentSize);
364364
case MESSAGES_COUNT -> Comparator.comparing(
365365
InternalTopic::getMessagesCount,
366-
Comparator.nullsLast(Long::compareTo)
366+
Comparator.nullsFirst(Long::compareTo)
367367
);
368368
default -> defaultComparator;
369369
};

0 commit comments

Comments
 (0)