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