jQuery event handlers always execute in order they were bound – any way around this? – Stack Overflow

It can be anoying that jQuery event handlers always execute in the order they were bound. For example:

$(‘span’).click(doStuff1);
$(‘span’).click(doStuff2);
clicking on the span will cause doStuf…