mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Sort modlist alphabetically
This commit is contained in:
parent
d52185c43e
commit
b94f18298d
2 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue