Layer order

I have a model that has over 100 layers in it and they are simply numbered numerically. But when I sort by name, it will not put the first 10 digits as 1, 2, 3, 4, etc… Instead, it puts 11 after 1, 2 between 19 & 20, 3 between 29 and 30, etc… I know I can change 1 to 01, 2 to 02 and so on, but is there a setting that simply allows V6 to see the numbers as 1, 2, 3, 4, etc that won’t place 11 after 1?

Hello - no… if your layer names are really just numbers, here is a quick python script to rename all with leading zeros-

import rhinoscriptsyntax as rs
import scriptcontext as sc


def leading_layer_zeros():
    num = rs.GetInteger("How many digits?", 3)
    if not num:return
    layers  = sc.doc.Layers
    
    for layer in layers:
        if not layer.IsDeleted:
            if (len(layer.Name))< num:
                layer.Name = layer.Name.zfill(num)
            
if __name__ == '__main__':leading_layer_zeros()

-Pascal