#N canvas 0 31 689 468 10; #X obj 95 193 print UNSORTED; #X msg 37 67 bang; #X obj 198 13 sort; #X text 314 77 any package-elements that are non-float will be interpreted as "0.0".; #X text 270 77 note :; #X obj 56 295 sort 1; #X obj 56 420 print ASCENDING; #X obj 37 337 sort -1; #X obj 37 442 print DESCENDING; #X text 278 287 creation : "sort []"; #X text 457 300 dir < 0 :: descending sort; #X text 456 287 dir >= 0 :: ascending sort; #X text 460 318 dir defaults to ascending; #N canvas 360 175 475 254 randompackage 0; #X obj 37 190 pack 0 0 0 0 0 0 0 0 0 0 0; #X obj 170 87 random 15; #X obj 156 104 random 15; #X obj 143 121 random 15; #X obj 130 138 random 15; #X obj 116 155 random 15; #X obj 103 172 random 15; #X obj 90 87 random 15; #X obj 76 104 random 15; #X obj 63 121 random 15; #X obj 50 138 random 15; #X obj 37 155 random 15; #X obj 37 52 inlet; #X obj 37 69 t b b b b b b b b b b b; #X obj 37 210 outlet; #X connect 0 0 14 0; #X connect 1 0 0 10; #X connect 2 0 0 9; #X connect 3 0 0 8; #X connect 4 0 0 7; #X connect 5 0 0 6; #X connect 6 0 0 5; #X connect 7 0 0 4; #X connect 8 0 0 3; #X connect 9 0 0 2; #X connect 10 0 0 1; #X connect 11 0 0 0; #X connect 12 0 13 0; #X connect 13 0 11 0; #X connect 13 1 10 0; #X connect 13 2 9 0; #X connect 13 3 8 0; #X connect 13 4 7 0; #X connect 13 5 6 0; #X connect 13 6 5 0; #X connect 13 7 4 0; #X connect 13 8 3 0; #X connect 13 9 2 0; #X connect 13 10 1 0; #X restore 37 155 pd randompackage; #X msg 72 120 -----; #X obj 37 101 t b b; #X floatatom 94 228 0 0 0 0 - - -; #X text 128 230 direction; #X obj 37 173 t l l l l; #X obj 75 247 sort; #X obj 75 398 print SORTED; #X text 237 13 shell-sort a package of floats; #X text 553 6 part of zexy; #X obj 81 362 print indicesD; #X obj 93 317 print indicesA; #X obj 72 137 print -----; #X text 269 152 the second outlet gives the indices of the input data. ; #N canvas 558 166 494 344 META 0; #X text 12 165 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan Wilkes for Pd version 0.42.; #X text 12 25 LICENSE GPL v2; #X text 12 145 AUTHOR IOhannes m zmoelnig; #X text 12 45 DESCRIPTION shell sort a package of floats; #X text 12 65 INLET_0 list; #X text 12 85 INLET_1 float; #X text 12 105 OUTLET_0 list; #X text 12 125 OUTLET_1 list; #X text 12 5 KEYWORDS control list_op; #X restore 631 435 pd META; #X connect 1 0 15 0; #X connect 5 0 6 0; #X connect 5 1 24 0; #X connect 7 0 8 0; #X connect 7 1 23 0; #X connect 13 0 18 0; #X connect 14 0 25 0; #X connect 15 0 13 0; #X connect 15 1 14 0; #X connect 16 0 19 1; #X connect 18 0 7 0; #X connect 18 1 5 0; #X connect 18 2 19 0; #X connect 18 3 0 0; #X connect 19 0 20 0;