How to call extention A as a before of Extension B

No, but it would be a good feature. See: Action chaining