> > vec.set(vTEXT,J,NOTETEXT) > vec.set(vHANDLE,J,HANDLE)
The above does not set vHandle[0]. Vec.doublesort may have changed the default sort order so that this is now sorting to start leading to different behavior you see. --------------------------------------------------- If I add some dumps before and after the doublesort (always a good idea if you think something is not behaving properly) ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ; HERE IS THE DOUBLESORT ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> for (j=0; j<vec.length(vHandle); j=j+1) win.debug(vText[j], vHandle[j]) endfor vec.doublesort(vText,vHANDLE) for (j=0; j<vec.length(vHandle); j=j+1) win.debug(vText[j], vHandle[j]) endfor and open three notes, I see the expected output before and after the sort. Note use of length rather than relying on "". ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
