void addHooks(Iterable<Hook> hooks) { _orderedHooks = hooks.toList() ..sort( (a, b) => b.priority - a.priority, ); }