title: changing stack order of jQuery UI modal dialogs
body: <p>I'm popping up two jQuery UI modal dialogs. One of them is triggered on the success of an AJAX function, so it usually comes up later, on top of the first dialog. I'd like to programmatically switch the stacking order of the two dialogs so that the first appears on top of the second. Trying to do this with the zIndex property and with dialog("moveToTop"), but neither seem to be having an effect. Suggestions?</p>