I found out that if I do not set the layerVisibility it works fine. It does not display the legend in reverse order.
I tried setting the layerVisibility in mxml and actionscript and in each case it reverses the legend.
What changed in 2.4 to cause this? It does not happen in 2.2.
I am using layerVisibility to turn on/off layers as the user zooms in to display different point symbols. Is there another way to do this?
Any help is appreciated!