Skip to content

Commit e7230c3

Browse files
committed
Sort block list before loading
1 parent 7f61c70 commit e7230c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ if (err) {
2121
console.log('Failed to open directory "blocks", does it exist?');
2222
std.exit(1);
2323
}
24-
files.filter(f => !f.startsWith('.')).forEach(script => {
24+
files.filter(f => !f.startsWith('.')).sort().forEach(script => {
2525
std.loadScript('./blocks/' + script);
2626
});

0 commit comments

Comments
 (0)