Then when you hit that key, the styles should get sorted alphabetically, please let me know if it doesn't work for you.

Oh also you probably shouldn't run this script while while the style editor dialog is also open, because it won't know how to deal with the styles changing out from underneath it like this script will do. So trigger the script when you are not in that dialog.

Also the script is not tremendously efficient, if you have something like more than 100 styles it may take a few seconds or something for it to complete.

This would probably be a good thing to put as a button in the edit styles dialog in the future.

- Michael

EDIT: 8/17/2012 - updated script to work properly with upper-case/lower-case names. Previously it sorted all names starting with upper case letters into one set and ones starting with lower case letters into a separate section, the updated version should not do that anymore.

Someone may want certain colors clustered together or something like that, which may not fit an alphabetical ordering.

It's not quite like the object list, since object names are something assigned to a selected object, while the styles list is more constructed as a list of items and so I don't really want to automatically disturb an ordering that someone may have set up for their particular list.

That might be somewhat of a bad fit, since having only an alphabetical ordering would mean some other controls like the Up and Down buttons in the Edit styles dialog would have no effect.

It seems like it could work better to have something like a Sort button on that same dialog that would do just a one-shot sorting of them when you pushed it rather than trying to auto sort them always.