Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Changing Sort Order.

Changing Sort Order

Written by Allen Wyatt (last updated January 24, 2022)
This tip applies to Word 97, 2000, 2002, and 2003


1

When Word sorts information, it does so according to the underlying codes used to represent characters on the screen. PCs and most other small computers, such as the Macintosh, use the ANSI character set or perhaps the Unicode character set. Regardless of which set is used, each character is assigned a unique numeric value. This assignment is done because computers can only manipulate numbers, not characters.

When sorting, Word is actually sorting information based on the underlying character codes, not on characters themselves. For instance, the ANSI character code for the letter C is 67, and the value for B is 66. By sorting the character codes in ascending order, B will always come before C.

This can lead to some problems when it comes time to sort some types of text. For instance, you may be creating a glossary, index, or bibliography, and you want "Brother, Charles" to come before "Brother Roberts" (in other words, you want the comma ignored during sorting). Unfortunately, you can't do that in Word—sorting is done as already described. While the first seven characters of each term ("Brother") match, the space will always be sorted before the comma. Why? Because the space has a lower numerical character code than does the comma.

The same sort of problem arises when sorting terms that contain abbreviations, such as "St. Charles" and "Saint Jerome." In traditional literary indexes, "St. Charles" would appear before "Saint Jerome." In mechanical indexes (an index sorted by a computer program such as Word is referred to as a mechanical index) the opposite is true because the "t" in "St." comes after the "a" in "Saint".

If someone is bound and determined to develop a list of text sorted in the grand literary style, then the only solution is to do it by hand or to use some work-around process. For instance, you could write all instances of "St. Charles" as "Saint Charles," but format "Saint" in such a way that after sorting you could easily find it (using Word's replace feature) and replace it with "St."

This is obviously a lot of work, particularly if you are dealing with a large amount of text. For this reason, many publishing houses (particularly those that publish technical non-fiction works) find using mechanical indexes quite acceptable. Those who prefer the traditional literary approach, however, are out of luck when it comes to Word.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1537) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Changing Sort Order.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Applying Numbers from the Keyboard

Creating a numbered list is often done by using tools on the toolbars or the ribbon. With a bit of preparation you can ...

Discover More

Returning the Smallest Non-Zero Value

In a series of values, you may need to know the smallest value that isn't a zero. There is no built-in function to do ...

Discover More

Working with E-mailed Documents

Ding! You've got mail. That mail has a Word document attached to it. Before you rush off and open that document, take a ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

Alphabetizing By Last Name

Sorting lists of names by last name is easy if they are listed in a LAST, FIRST order. But what if the names are in FIRST ...

Discover More

Controlling Sorting Order

When you sort information either in a table or the body of you document, Word follows a very specific set of rules to do ...

Discover More

Sorting Tabular Tables

Some people like to format simple tables using tabs instead of using Word's table editor. When it comes time to sort such ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2015-04-09 11:05:00

Jacek

You can override sorting order easily.
See here:

taxonomist.tripod.com/indexing/wordproblems.html#override

Summary of syntax:
{ XE "Display me as";"Sort me as" }

Best regards
Jacek


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.