[PD] problem with sort object

D G mami.music at gmail.com
Mon Jan 20 22:16:11 CET 2014


Hello
i need a list sorting object and there is [sort] in the zexy externals.

but it seems that i have found a bug.

if I use the following list of unsorted numbers
0.192477 0.00670372 *0.152811* 0.00688959 0.162687 0.00633917 0.188098
0.00716823 0.177974 0.00697544 0.159727 0.00695443 0.166196 0.00645065
0.168316 0.030957

i get this sorted list in return
0.00633917 0.00645065 0.00670372 0.00688959 0.00695443 0.00697544
0.00716823 *0.152811* 0.030957 0.159727 0.162687 0.166196 0.168316 0.177974
0.188098 0.192477

this number in bold font (the third one from the unsorted list) is not
correctly sorted

it happens with this other list too:
unsorted:
11.6279 0.129769 *3.50877* 0.396668 15.873 0.16442 5.26316 0.397614 16.9492
0.16818 3.57143 0.3367 10.4167 0.15758 4.14938 0.19972
sorted:
0.129769 0.15758 0.16442 0.16818 0.19972 0.3367 0.396668 *3.50877* 0.397614
3.57143 4.14938 5.26316 10.4167 11.6279 15.873 16.9492

and the problem seems to be of the object in the third position.

Does this make any sense to anybody? can you replicate the error with the
same numbers?

is there another object to sort the elements of a list or an array?

thanks

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20140120/061d1252/attachment.htm>


More information about the Pd-list mailing list