tju-yxq commented on issue #1828: URL: https://github.com/apache/rocketmq-dashboard/issues/1828#issuecomment-5255578509
@RockteMQ-AI All requested information is already included in the issue body above: - **Version/tag**: `rocketmq-studio` branch, commit `bce4b10` - **Steps to reproduce**: Query messages by topic with a time range in RocketMQ Studio. The `queryByTopic()` method iterates through message queues sequentially, adding results in queue order (queue 0 first, then queue 1, etc.) without sorting by timestamp. - **Expected**: Messages sorted by `storeTimestamp` (most recent first) for easy browsing. - **Actual**: Messages returned in queue iteration order — messages from queue 0 (possibly older) appear before messages from queue 1 (possibly newer), making it difficult to find recent messages. - **Relevant logs**: No error logs — this is a behavioral issue, not a crash. The result list is simply unsorted. The fix sorts results by `storeTimestamp` before returning: `result.sort(Comparator.comparingLong(MessageRecordVO::getStoreTime).reversed());` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
