Enable sort on legendLayers array when author sort the legend. Solve problem in accordion css class refresh. Stop bubbling for open/close all.