将初始化内容设定为“名称”排序 (#2054)

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

* 更新 RemoteModRepository.java
This commit is contained in:
zkitefly 2023-02-02 21:33:43 +08:00 committed by GitHub
parent cf136fe7df
commit f7526d4cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -38,10 +38,10 @@ public interface RemoteModRepository {
Type getType();
enum SortType {
NAME,
DATE_CREATED,
POPULARITY,
LAST_UPDATED,
NAME,
AUTHOR,
TOTAL_DOWNLOADS
}
@ -89,7 +89,7 @@ public interface RemoteModRepository {
}
String[] DEFAULT_GAME_VERSIONS = new String[]{
"1.19.3", "1.19.2", "1.19.1", "1.19",
"1.19.4", "1.19.3", "1.19.2", "1.19.1", "1.19",
"1.18.2", "1.18.1", "1.18",
"1.17.1", "1.17",
"1.16.5", "1.16.4", "1.16.3", "1.16.2", "1.16.1", "1.16",