We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
版本列表页面目前完全是乱序的,希望能添加排序功能
我感觉原先是有默认顺序设计的,但实现有问题,更像个 bug
DefaultGameRepository#refreshVersionsImpl 中,先是定义了 TreeMap
DefaultGameRepository#refreshVersionsImpl
TreeMap
HMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java
Line 268 in 8a816f7
但 SimpleVersionProvider 默认是 HashMap
SimpleVersionProvider
Line 275 in 8a816f7
HMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/game/SimpleVersionProvider.java
Line 29 in 8a816f7
方法的最后,直接以 HashMap 的顺序放入到 TreeMap 中
HashMap
Lines 355 to 365 in 8a816f7
改成 TreeMap 应该至少能以文件遍历顺序(A-Z)显示了 但既然提了 Feat,天马行空一点,搞个升序、降序,还有搜索、按标签(API,MC版本)搜索等等((
乱序找起来太难受了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
描述 | Description
版本列表页面目前完全是乱序的,希望能添加排序功能
我感觉原先是有默认顺序设计的,但实现有问题,更像个 bug
DefaultGameRepository#refreshVersionsImpl
中,先是定义了TreeMap
HMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java
Line 268 in 8a816f7
但
SimpleVersionProvider
默认是 HashMapHMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java
Line 275 in 8a816f7
HMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/game/SimpleVersionProvider.java
Line 29 in 8a816f7
方法的最后,直接以
HashMap
的顺序放入到TreeMap
中HMCL/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java
Lines 355 to 365 in 8a816f7
改成
TreeMap
应该至少能以文件遍历顺序(A-Z)显示了但既然提了 Feat,天马行空一点,搞个升序、降序,还有搜索、按标签(API,MC版本)搜索等等((
原因 | Reason
乱序找起来太难受了
The text was updated successfully, but these errors were encountered: