[Enhancement] 下载界面的依赖列表采用按项目 slug 排序#6207
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces sorting for dependency mod items in the download page, ordering them by slug while placing broken dependencies at the end. However, the custom comparator implementation violates the Java Comparator contract when handling non-DependencyModItem nodes, which can trigger a runtime IllegalArgumentException. A robust comparator implementation has been suggested to resolve this issue.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java
以前是无序的
Closes #6206