Sorted Array Objects by name
I need to sort the objects in the array by there name without replacing the array with just there names.
The first printed list with all the objects information is what I need, but I need it to be in alphabetical order. The second list is in the correct order but I loose all the objects information.....
arr = selection as array print arr -- need this array to be sorted by name but still keep all there information listed = sort(for i in arr collect i.name) print listed

Comments
Thanks Swordslayer
Thank you for clearing that up and making it a lot simpler than I was doing it.
JokerMartini
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Just use qsort with a custom
Just use qsort with a custom function.
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
Sooo clean. Thanks!
Sooo clean. Thanks!
!
Thank you Swordslayer
best solution for me.... tx
best solution for me.... tx
Not Updating Variable
I'm not sure why but this is not updating the outer variable MyCustomObjs?????
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
This is what I came up with.
Not sure if its the best solution but this is what I came up with.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)