jQuery UI Accordion - How to move active accordion panel to top?

jQuery UI Accordion - How to move active accordion panel to top?

Not sure if this is possible or if it's even a good idea, but here's what I'm trying to do. First off the site in question can be found here...


The page is using a jQuery UI accordion which I've customized to fit the look I'm going for. So far I'm very happy with it. The only thing I've been thinking lately is it would be cool if whichever accordion panel was open or 'active' moved to the top of the list.

So for instance, if you clicked on the 'Decorative LED Lights' panel it would move to the top of all the other accordion panels and open there. Does this make sense?

I'm learning jQuery slowly so I'm not 100% sure of how to accomplish this or if perhaps it's a built in feature. Either way just figured I would ask. I don't want to take too much of someones time so if it's super complicated I understand.