Allow setting hook priority, order hooks by priority.