Sort listeners after every Dispatcher.attach in order to iterate over them using ordinary 'for' loop