[mv3] Sort scriptlet functions

To minimize diff between releases.
This commit is contained in:
Raymond Hill 2025-12-09 12:58:10 -05:00
parent e7c67d533b
commit e036156f3a
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -197,7 +197,7 @@ export async function commit(rulesetId, path, writeFn) {
);
content = safeReplace(content,
'self.$scriptletCode$',
Array.from(allFunctions.values()).join('\n\n')
Array.from(allFunctions.values()).sort().join('\n\n')
);
writeFn(`${path}/${world.toLowerCase()}/${rulesetId}.js`, content);
stats[world] = Array.from(worldDetails.matches).sort();