Top Navigational Bar

Sort - WP Treats Forward Slash And Hard Hyphe
DocumentID: 626275
Revision Date: 29-Feb-96 1:41:35 PM

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

Problem

Symptoms: The Sort feature does not work properly when sorting words that have forward slashes. For example, one customer tried to sort the following text:

M1234/5-45-123
M3431/5-56-432
M1234/5-45-124
M1234/5-34-124

The Key was defined as Key1 = a,1,1. The first part of the list sorted correctly (the M1234 section), but the numbers following that section sorted in random order.

Another customer had trouble sorting dates in the 01/31/91 format that were in the same cell of a table. Solutions: WordPerfect treats the forward slash character (/) as a word delimiter. The first user should define a second Key for the second word on the line. In this case, the correct key definitions would be as follows: Key1=a,1,1 and Key2=n,1,2.

Customers sorting dates that use the forward slash (01/01/94) or a Hard Hyphen (01-01-94) may also have trouble sorting. Since WP treats the forward slash (/) and the Hard Hyphen (Home, -) as word delimiters, the month would be considered the first word, the day as the second word, and the year as the third year. Customers would need to define Keys to sort each word in the date. To properly sort dates, Key 1 should sort on word 3 (year), Key 2 on word 1 (month), and Key 3 on word 2 (day).

By the same reasoning, if customers try to sort numbers like 1.2.1, 10.2.1, 3.4.1, 7.10.2, etc., WordPerfect treats these numbers as one word. If customers need to sort this information, they could search and replace the "." (periods) with "/" (forward slashes). This will allow WP to treat each part of the number as a separate word.

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.