We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c92c17 commit 59b6de2Copy full SHA for 59b6de2
adminforth/modules/configValidator.ts
@@ -58,7 +58,8 @@ export default class ConfigValidator implements IConfigValidator {
58
injections.forEach((target, i) => {
59
injections[i] = this.validateComponent(target, errors);
60
});
61
- return injections;
+ // sort by injection.meta?.afOrder || 0 desc
62
+ return injections.sort((a, b) => (b.meta?.afOrder ?? 0) - (a.meta?.afOrder ?? 0));
63
}
64
65
checkCustomFileExists(filePath: string): Array<string> {
0 commit comments