It's really not a duplicate, please read it before tagging.
I have a button with multiple events being attached (save, validate, etc.). In one controller, I'm attaching a function, which I need to execute as the last event. I can't move with other code much, its a big company project (=can't affect the order in which controllers are being called and the events attached). I can see that my function is not the last one getting attached.
I found a way to make sure that the function is executed first - which is more convenient because the events attached after the function go to the end and don't affect it anymore.
But is there a way to make sure the function is always being called last, no matter what?