Sorting Only Word One Ignores Word Two Entire

DocumentID: 607871
Revision Date: 29-Feb-96 1:32:32 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: A customer wants clarification on how Sort works. For example, the customer is sorting a simple file that looks like this: aaaa 555 aaaa 333 aaaa 111 aaaa 777 aaaa 999 aaaa 444 Using a sort by line with only Key1 defined (a,1,1) the sort rearranges the lines, even with word one being all the same. What are the rules for the way WordPerfect sorts concerning the second word in this case? Solutions: included the second word, WP ignores the second word entirely for the sort. Because of the particular algorithm WP uses for sorting (called a "heap sort"), records with exact duplicate keys may appear in any order; in fact, the order of such records may very well change each time you sort.

Answer:

Details:

Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.