aboutsummaryrefslogtreecommitdiff
path: root/builtin/modmgr.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/modmgr.lua')
-rw-r--r--builtin/modmgr.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua
index 58ffb1530..2f1343738 100644
--- a/builtin/modmgr.lua
+++ b/builtin/modmgr.lua
@@ -972,6 +972,8 @@ function modmgr.init_worldconfig()
hide_game=modmgr.hide_gamemods,
hide_modpackcontents= modmgr.hide_modpackcontents
})
+ filterlist.add_sort_mechanism(modmgr.modlist, "alphabetic", sort_mod_list)
+ filterlist.set_sortmode(modmgr.modlist, "alphabetic")
return true
end
@@ -1068,6 +1070,8 @@ function modmgr.refresh_globals()
nil, --filter
{}
)
+ filterlist.add_sort_mechanism(modmgr.global_mods, "alphabetic", sort_mod_list)
+ filterlist.set_sortmode(modmgr.global_mods, "alphabetic")
end
--------------------------------------------------------------------------------