I know in VBA there is a simple property to get a count of layers. Can one do this in Lisp without looping thru the list and counting? My goal is to make a tool that sets MaxSort to 5% larger than the number of layers, as apposed to the tool I have now that adds a feww hunderd to the value, and sometimes you need to do the command 2 or 3 times to get the sort to work, and there is no way (in my current tool) to reduce MaxSort again. Or should I just set MaxSort to some huge number and be done with it, because it no longer impacts performance on these modern, speedy machines of ours? Thanks, Gordon