Thanks Jarek, the updated script works well. I attempted to mod your script to sort Children layers of a parent layer which is current, without success so far,
I’ve replaced getting the layer list (Rhino.LayerNames) with the following and tried a few different things but have hit a brick wall, any tips would be appreciated.
'get current layer and check fo children layers
arr_SubLayers = Rhino.LayerChildren(str_CurrentParent)
Rhino.Print "Layer has no children"
arr_SubLayers = Rhino.SortStrings(arr_SubLayers, True) 'ascending