[gallery-y-common-dombind] sort directives by priority to be able to expose the directives creation externally to add additional functionality
[gallery-y-common-dombind] more docs added