Joe Discenza wrote:
I can't find anything in the doc about whether Perl's sort function
maintaining the order in equivalent subsequences.

Hi,
You could take a look at:

Perl\html\lib\sort.html

To summarize V5.8 seems to be using the merge sort algorithm which is stable, i.e. maintains the original ordoring in elements that are determined to be equal. 5.6 and earlier use a quick sort by default and it is not stable. In 5.8 at least, you can choose which algorithm should be used with the sort pragma that the above HTMl page in Active State Perl documents.

Hope this can be of help.

--
With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to