  | | | Benefits of XSIUtils.QuickSort? | Benefits of XSIUtils.QuickSort? 2004-02-09 - By Rick Walia
Back Quoting Jerry Gamache <jerryg@(protected)>: > XSIUtils.QuickSort was done for langages that do not have an easily accessible > sort function. Python takes sorting very seriously: For 2.3: > http://mail.python.org/pipermail/python-dev/2002-July/026837.html > For 2.2 and earlier: http://py-stablesort.sourceforge.net/
[RW] ...which is why I was a bit confused when I saw an example in the sdk docs for python. Ahh, you posted a link for 2.3 as well. I can't get that working for me on Win32 with XSI. Maybe next release.
> For multidimensionnal sorting, you can either provide a complex comparator > function or use DSU sorting: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52234 > (Also discussed in more details in the Python Cookbook).
[RW] That is a good read. Well to the best of my knowledge, there is no internal standard function sorting for multi-dimensional arrays out of the box ( like array_multisort() ). Then again, I'm no master in this :->
Ultimately I think we would have to use a custom function or class like the link you posted. It's not a problem though.
I was having problems with sorting a list of points and a list of polys. Either way I'm all good now.
I really like that numarray module that I found. http://stsdas.stsci.edu/numarray/Doc/node33.html#l2h-67
Thanks for the replies,
/R
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |