From the documentation:
attach attach(string $event, callback $callback, int $priority)
Attaches $callback to the EventManager instance, listening for the event $event. If a $priority is provided, the listener will be inserted into the internal listener stack using that priority; higher values execute earliest. (Default priority is “1”, and negative priorities are allowed.)
Read more here: http://framework.zend.com/manual/2.0/en/modules/zend.event-manager.event-manager.html