初始化内容修改为“热度” (#2099)

* 将初始化内容设定为“名称”排序

* 更新 RemoteModRepository.java

* 初始化内容修改为“下载量”

搜索时排序依然是“名称”

* 还是默认“热度”吧

因为一般搜模组都是搜热度比较高的,搜出的结果就较为准确

* Update DownloadListPage.java
This commit is contained in:
zkitefly 2023-02-11 13:51:32 +08:00 committed by GitHub
parent d828f7bc7b
commit 54eab87356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP
if (!searchInitialized) {
searchInitialized = true;
search("", null, 0, "", RemoteModRepository.SortType.TOTAL_DOWNLOADS);
search("", null, 0, "", RemoteModRepository.SortType.POPULARITY);
}
if (versionSelection) {

View File

@ -38,9 +38,9 @@ public interface RemoteModRepository {
Type getType();
enum SortType {
POPULARITY,
NAME,
DATE_CREATED,
POPULARITY,
LAST_UPDATED,
AUTHOR,
TOTAL_DOWNLOADS