Microsoft KB Archive/61465

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word for the Macintosh, versions 4.0, 5.0, 5.1

SUMMARY
Microsoft Word sorts numbers with commas (for example, 1,000 or 2,345,234) in standard numeric order (for example, 45; 367; 1,234; 34,123...) if the numbers are the only characters in the paragraph. If, however, there is any other text in the paragraph (this includes a space or tab), the comma is considered to be text and Word will sort the numbers before the comma first (for example 12,234; 34; 456,289; 798 -- that is, 1<3<4<7).

MORE INFORMATION
Word ignores commas in a number if the number is the only group of characters in the paragraph. However, if other text is added to the paragraph, Word interprets the entire paragraph as a text string. Commas are then seen as part of the text string and become delimiters between distinct values rather than delimiters between numeric placeholders. Text sorting sorts numbers first, then it sorts alphanumeric characters. Thus, &quot;12,345a&quot; (without quotation marks) will be sorted before &quot;234a&quot; (without quotation marks).

This problem also occurs if the numbers that contain commas are in a table that was created using Word's Insert Table command.

The only workaround is to not use commas in numbers. Then, &quot;12345a&quot; (without quotation marks) will sort after &quot;234a&quot; (without quotation marks).

NOTE: You can use the commas if you hold down the OPTION key and select just the numeric values in each paragraph. This is only possible, however, if the numbers in each paragraph are perfectly aligned with each other so that no nonnumeric characters are highlighted.
 * }

-

Last reviewed: November 17, 1997

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.