Sort only top layers in alphabetical order?

Hi All :slight_smile:
Is there a way - command, script or other - to sort only the top level layers in alphabetical order, while leaving the order of the sublayers alone?
TIA, Jakob

Nevermind - Gemini to the rescue!
SortTopLayers.py (5.2 KB)
-Jakob